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/#

25th Jul 2018, 9:14 PM
Michelle Becker
Michelle Becker - avatar
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'.
25th Jul 2018, 9:22 PM
Hatsy Rei
Hatsy Rei - avatar
+ 1
Thank You c:
26th Jul 2018, 3:59 PM
Michelle Becker
Michelle Becker - avatar