hi, i've got 2 radio button(male and female)
1)when user select male, how to unchecked female and vice-versa..
hi, i've got 2 radio button(male and female)
1)when user select male, how to unchecked female and vice-versa..
try looking at this: http://www.tizag.com/htmlT/htmlradio.php
tks for the help but it do not show how to uncheck when another is checked
there is a problem. i copy my code to a fresh html page it works.. werid.. here is my code. i integrate the example from tizag.com.. only the one in red works
<td width="120" height="25" valign="top"><span class="style7">Gender:</span></td>
<td height="25" colspan="5" valign="top"><label class="style7">
Male<input name="gender" type="radio"/>
Female<input name="gender" type="radio" />
Italian: <input type="radio" name="food" />
Greek: <input type="radio" name="food" />
Chinese: <input type="radio" name="food" />
</label></td>
hey i solved it. its weird but the <label> tag restrict me from doing it.
Of course it did: because you are not using the <label> tag correctly. Some browsers may not notice, and some doctypes will affect whether they do or not.
If you're satisfied with your solution, don't forget to mark this thread resolved.