Could someone tell me why all the radio fields are automatically filled when i run my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Could someone tell me why all the radio fields are automatically filled when i run my code?

https://code.sololearn.com/WD5u6Y5q293w/?ref=app

21st Jan 2019, 8:13 PM
RiGeL
RiGeL - avatar
4 Answers
+ 1
Lexus Collins you are right..! I made the changes and it all worked! Thank you a Bunch!😊
21st Jan 2019, 8:21 PM
RiGeL
RiGeL - avatar
0
Because every input field of question 1 you set "checked". If you remove it everything is normal.
21st Jan 2019, 8:17 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Lexus Collins thank you..i know its bcoz of the checked attribute...but if i dont write that checked att. then the user will be able to choose more than one answer..whichs not allowed in my Quiz...what can i do about that..?
21st Jan 2019, 8:17 PM
RiGeL
RiGeL - avatar
0
TheWhiteCat💡 Thank you but if i remove the Checked att. then the user can choose more than one answer at Once .! which's definitely not allowed in Quizes..
21st Jan 2019, 8:19 PM
RiGeL
RiGeL - avatar