[Solved] Javascript / Html Check box error [closed]
[ad_1] On line 68 of your code, you set y to be the number of questions the user asked for. y=document.getElementById(“myForm”).elements[0].value; This loop (starting on line 102) is where the error is coming from: for(var i=0; i<y; i++){ if(choices[i].checked){ choice = choices[i].value; } } Here’s what happens: If you ask for 4 questions, this loop … Read more