How do I edit "radio" to make it response to the LABEL or SPAN | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do I edit "radio" to make it response to the LABEL or SPAN

I have created quiz,used span but the radio are not responsive to the span.How do I make that possible?

19th Apr 2022, 10:47 AM
Khabir khalid
Khabir khalid - avatar
3 Answers
+ 2
if(document.getElementById('summer').checked == true) { document.write("Summer radio button is selected"); } else { document.write("Summer radio button is not selected"); }
19th Apr 2022, 11:01 AM
JaScript
JaScript - avatar
19th Apr 2022, 12:02 PM
JaScript
JaScript - avatar
0
Does label own the Id('summer')?
19th Apr 2022, 11:04 AM
Khabir khalid
Khabir khalid - avatar