0

Please tell me how can i do different checkbox single selection only

In html https://code.sololearn.com/WD77nseTnIaN/?ref=app I am unable to select different option in it please check

17th Mar 2021, 12:35 PM
Anshul Sharma
Anshul Sharma - avatar
2 Réponses
0
multi-select checkbox are done with <input type="checkbox"> <input type="radio"> is designed to group radio button by name, and allow only one to be selected (among name group)
17th Mar 2021, 12:43 PM
visph
visph - avatar
0
"Blood group" and "Bloodgroup" are two different names, so create two radio groups... if you want only one selection among both, you should give them the same name attribute... also, you should give each radio option a different value attribute to be able to distinguish user selection (at least on server side) ;)
17th Mar 2021, 12:47 PM
visph
visph - avatar