File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ function showQuestion(number, question) {
127127 // print the distractors
128128 const distractor = question . distractor ;
129129 for ( i = 0 ; i < distractor . length ; ++ i ) {
130- html += '<input type="radio" name="' + number + '" onclick =checkAnswer("' + number + '", "' + distractor [ i ] + '") value="' + distractor [ i ] + '">' + distractor [ i ] + ' <br/>' ;
130+ html += '<input type="radio" name="' + number + '" onchange =checkAnswer("' + number + '", "' + distractor [ i ] + '") value="' + distractor [ i ] + '">' + distractor [ i ] + ' <br/>' ;
131131 }
132- html += '<input type="radio" name="' + number + '" onclick =checkAnswer("' + number + '", "' + question . answer + '") value="' + question . answer + '">' + question . answer + ' <br/>' ;
132+ html += '<input type="radio" name="' + number + '" onchange =checkAnswer("' + number + '", "' + question . answer + '") value="' + question . answer + '">' + question . answer + ' <br/>' ;
133133
134134 html += "</form><br/>" ;
135135 } else {
You can’t perform that action at this time.
0 commit comments