Click here to Skip to main content
15,908,661 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have two radio button & i want to let user can select one of them not both of them
what should i do?
Posted

See example:
XML
<input type="radio" name="gender" value="male">Male<br>
<input type="radio" name="gender" value="female">Female

The trick is to use same value for the name attribute.
 
Share this answer
 
v2
put same name to both of them will resolve your problem
 
Share this answer
 
v2
Go to your both radio button property then set as same name for both groupname in radio button.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900