Dear Users,
I have 2 radio groups Yes/No option with values 1/2 , where 1 = Yes and 2 = No. How do I do a validation if I select both No to pop up message open and say “Please select at least one Yes”, below is the simple code I did for the buttons. Thank you for all your help
<form name=”form1″ method=”post” action=””>
<p>
<label>
<input type=”radio” name=”RadioGroup1″ value=”1″ id=”RadioGroup1_0″>
Yes</label>
<br>
<label>
<input type=”radio” name=”RadioGroup1″ value=”2″ id=”RadioGroup1_1″>
No</label>
<br>
</p>
<p>
<label>
<input type=”radio” name=”RadioGroup2″ value=”1″ id=”RadioGroup2_0″>
Yes2</label>
<br>
<label>
<input type=”radio” name=”RadioGroup2″ value=”2″ id=”RadioGroup2_1″>
No2</label>
<br>
</p>
<p>
<label>
<input type=”submit” name=”submit” id=”submit” value=”Submit”>
</label>
</p>
</form>