Skip to content Skip to sidebar Skip to footer

Both Of The Radio Buttons Can Be Selected

I have form with 2 radio buttons but both of the radio buttons can be selected,

Solution 1:

Give them the same name.

Solution 2:

Description of the radio button control type in the HTML 4.01 specification:

Radio buttons are like checkboxes except that when several share the same control name, they are mutually exclusive: when one is switched "on", all others with the same name are switched "off".

Solution 3:

<formclass="descriptions"id="collection"method="post"action=""><tablewidth="200"><tr><td><label>Collection</label><inputtype="radio"name="samename"value="collection" /></td><td><label>Delivery</label><inputtype="radio"name="samename"value="delivery"    /></td></tr></table></form>

// this is the correct answer for ur following problem //

Post a Comment for "Both Of The Radio Buttons Can Be Selected"