How to use the radiobutton | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to use the radiobutton

Hello, i wanna make a quiz, But i dont know how to get the info from the radiobutton. Can someone help me? This is what i tried.. https://code.sololearn.com/W29G7mRQA2p4/?ref=app

17th Jun 2019, 7:30 PM
mine
mine - avatar
2 Answers
+ 6
Here, you can use the 'id' attribute and use it to distinguish the options. https://code.sololearn.com/WGVyO5zG57tk/?ref=app But if you use jQuery, you can change attributes for new questions' options. https://www.sololearn.com/learn/jQuery/2794/?ref=app Edit: I see that you have already progressed a lot. You're learning fast mine. Good job. https://code.sololearn.com/Wg9cHNmnObpK/?ref=app
19th Jun 2019, 11:48 AM
Kainatic [Mostly Inactive Now]
Kainatic [Mostly Inactive Now] - avatar
+ 4
You need more CSS and more JS to be able to make a quiz. Here is an example of using the radio button and a great quiz for you to study and learn from. https://code.sololearn.com/WQDovm16yymH/?ref=app
17th Jun 2019, 8:18 PM
River
River - avatar