Answer the question
In order to leave comments, you need to log in
Why is submit not interrupted?
There is a small login form. It has a register button. js, when you click on it, it replaces the login form with a registration form. To check the password fields, you need to validate them, but onsubmit is not interrupted in any way. What's wrong?
https://jsfiddle.net/q6d1pez7/4/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question