+ 5
I am having problems with this code.
For some reason the javascript if else statments aren't working. https://code.sololearn.com/w72Vd8HxFv3y/?ref=app
3 Answers
+ 2
The clue is in your alert window. The alerted word âerrorâ is not centred in the window, suggesting there is some whitespace in your passMatch string.
Fix: line 146
var passMatch = div.textContent;
->
var passMatch = div.textContent.trim();
+ 1
Thanks Russ that fixed it.
0
but replace document.getElementById("back").style.display = "none";
to document.getElementById("#back").style.display = "none";
...