Jump to content

Jquery validating radio button


mayman212

Recommended Posts

I am trying to validate radio buttons for gender using Jquery, but have no clue as to how I go about doing it, the different ways I've tried do not seem to work> anybody have any help.

I have included the form part for the gender radio buttons.

<tr>
		<td>Gender</td>
		<td><input type="radio" name="gender"value="Male" <?php if($row['Gender']=='male'){echo 'checked';}?>  /> Male<input type="radio" name="gender" value="Female" <?php if($row['Gender']=='female'){echo 'checked';}?>/> Female</td>
	  </tr>

Link to comment
https://forums.phpfreaks.com/topic/248388-jquery-validating-radio-button/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.