How do i link checkboxes and radios (HTML) to the JS script? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How do i link checkboxes and radios (HTML) to the JS script?

<div> <p>question</p> <input type="checkbox" name="one" value="answer-one"> <input type="checkbox" name="two" value="answer-two"> <input type="checkbox" name="three" value="answer-three"> </div> Having that as an example, how'd i make that interact with JS? With id maybe, but I don't know...

12th Feb 2019, 8:56 PM
Grasshopper Hell Monkey
Grasshopper Hell Monkey - avatar
1 Answer
+ 4
https://code.sololearn.com/W5OlKAjrIpRy/?ref=app In same you, u can interact with radio as well.
12th Feb 2019, 11:20 PM
Arushi Singhania
Arushi Singhania - avatar