0
Dont find the Error | Color an Button
Ive got issues with my Script... . Can someone please look over it? ... It should color the Submit button to green/red at right/wrong input. https://code.sololearn.com/Wtioz90b2U8h/#
2 odpowiedzi
+ 4
JS line 1,2,3 should be wrapped in an onload function.
window.onload = function () {
//line1
//line2
//line3
}
to avoid getElementById executing before DOM loads.
Line 24 getElementById has wrong ID. Instead of 'output', it should be 'Output'.
+ 1
Thank You c: