I have a form with 2 radio buttons and multiple checkboxes (see example below). The one radio button indicates all and the other radio button indicates the user has chosen specific options (checkboxes) from a list. Can I use javascript to automatically select the 2nd radio button if the users clicks on any of the checkboxes?
<form name=form1>
<input type=radio name=Radio1 value=All>
<input type=radio name=Radio1 value=Specific>
<input type=checkbox name=Checkbox1>
<input type=checkbox name=Checkbox2>
<input type=checkbox name=Checkbox3>
<input type=checkbox name=Checkbox4>
</form>
<form name=form1>
<input type=radio name=Radio1 value=All>
<input type=radio name=Radio1 value=Specific>
<input type=checkbox name=Checkbox1>
<input type=checkbox name=Checkbox2>
<input type=checkbox name=Checkbox3>
<input type=checkbox name=Checkbox4>
</form>
Comment