+ 1
[Solved] Please help!!
Why line 45 is wrong? And why the rules box does not disappear on clicking OK button? Please suggest some common rules of a normal quiz. https://code.sololearn.com/WJO76qulDHa1/?ref=app
4 Antworten
+ 2
The id of your button is "ok"
Not "OK!"
+ 1
Because you don't have any element with id "OK!" see line 40.
And as ok is not define no function on click hence no disappearance of ruleBox.
+ 1
Line 40
var ok = document.getElementById('ok');
Instead of
var ok = document.getElementById('OK!');
+ 1
Thank you so much Oma Falk and Divya Mohan, can you please suggest some normal quiz rules as well. Please.