Let's say that I have 3 inputs of type 'radio' (A, B, C) and I have two other 'radio' (X, Z) disabled and can only be auto-selected if the radio B or C is clicked, and if I click the radio A < strong>, the radios (X, Z) should come back and be disabled again.
The following is the code for example, so I want to put all this in JavaScrip (I do not know if there is another way, but my interest would be JS):
<FORM>
<fieldset><legend><font color="darkblue"> CAIXA 1 </font></legend>
<input type="radio" id ="rada" name="planoSaud" />A
<input type="radio" id="radb" name="planoSaud" />B
<input type="radio" id="radc" name="planoSaud" />C
</fieldset>
</FORM>
<FORM>
<fieldset><legend><font color="darkblue"> CAIXA 2 </font></legend>
<input type="radio" id ="radx" name="planoSaud" />X
<input type="radio" id="radz" name="planoSaud" />Z
</fieldset>
</FORM>
Thanks!