+ 1

Problem with JS in code.

https://code.sololearn.com/WdWbqtffLEtm/?ref=app What is the error in this code that this doesn't follow if elseif statements? (Refer to the things which happens after verification of password and username in my code..) Whether the password is right or wrong,it takes me to a blank page.

25th Dec 2018, 8:24 AM
Manan
Manan - avatar
2 Respostas
+ 2
It because the form are submitted. You can use preventDefault to prevent it. https://www.w3schools.com/jsref/event_preventdefault.asp
25th Dec 2018, 8:41 AM
Taste
Taste - avatar
+ 1
Thanks Taste
25th Dec 2018, 10:13 AM
Manan
Manan - avatar