+ 1
Please guys, the radio input in this code is selecting both options and i want to select only one, what can i do? Thanks
3 Réponses
+ 1
Diego Acero That is precisely the fix.
Faith Daniel The radio options need to share the same "name" but can contain their own "values".
+ 1
Don’t know much about HTML but changing the name attribute of lines 24-25 to the same thing seems to be working fine for me.
For example:
<input type= "radio" name= "gender" value= "male" > Male<br>
<input type= "radio" name= "gender" value= "Female"> Female<br><br>
https://stackoverflow.com/questions/17055822/why-dont-my-radio-buttons-deselect-when-i-click-on-another-radio-button
0
Wow. Thanks