0

Check box 2 demo

Why this code can not run well? I use Simple method to test if each check box (there are four) is checked, and output corresponding result. We know that checkbox allows us to choose multiple available choices. https://sololearn.com/compiler-playground/W3rHcfmdRn9x/?ref=app

16th Apr 2024, 3:04 PM
Oliver Pasaribu
4 ответов
+ 5
the is no element with the id check3
16th Apr 2024, 3:11 PM
Lisa
Lisa - avatar
0
<input type="checkbox" id="check3" value="Television"> <label for="check3">Television</label> Change it to this
17th Apr 2024, 6:35 PM
Abdulaziz Abdurasul
Abdulaziz Abdurasul - avatar
0
Ok. I will test it later.
18th Apr 2024, 3:24 AM
Oliver Pasaribu
0
Lisa, check3 actually the duplication of check2. There are 2 id check2 there. I copy code for check3 from element with id="check2".
18th Apr 2024, 10:51 PM
Oliver Pasaribu