Hello! Guys, my <input type="radio"... element allows to choose multiple options. How do I make it right? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello! Guys, my <input type="radio"... element allows to choose multiple options. How do I make it right?

I use multiple <input type="radio" name=... value=...>Male(female, etc)<br/> tags, but when I run the web page, I am able to choose both "male" and "female" options. Also, I can't unchoose them. I beg forgiveness, for my code is messy https://code.sololearn.com/WLk9C6l35Dgq/?ref=app

13th Oct 2021, 5:29 PM
Андрей Тимофеев
Андрей Тимофеев - avatar
1 Answer
+ 4
the name attributes have different values namely male and female. It should be same. Replace male and female by gender.
13th Oct 2021, 5:38 PM
Kashyap Kumar
Kashyap Kumar - avatar