0
Why the radio button is not working?
I don't know if I made an error or what. When clicking in the button "Yes" and "No", why am I able to click both Yes and No. What mistake is there to make able to choose both button. Please help me. I want to make it clickable for just one button. https://sololearn.com/compiler-playground/WYb16fvI6l1q/?ref=app
2 Answers
+ 1
I donât think âfriendâ is a valid parameter of the radio button tag. What do you want to do is set the name parameter of both buttons to âfriendâ to make them affect the same variable, and then set the value parameter to âwantâ or âdonât wantâ for each (right now they are both âwantâ which wouldnât work even if the paeameters were correct).
+ 1
Same question here. Solution use name attributes.
https://www.sololearn.com/Discuss/3276684/?ref=app