U
U
Untiwe2020-11-30 16:37:28
JavaScript
Untiwe, 2020-11-30 16:37:28

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

1 answer(s)
A
Andrew, 2020-11-30
@Untiwe

Your button cannot submit... Tie it
to the form.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question