P
P
Petrusha Ukropov2013-09-19 18:28:58
JavaScript
Petrusha Ukropov, 2013-09-19 18:28:58

Ajax form submission - validation not working. Bug or feature?

See for yourself jsfiddle.net/artishok/ZCd7X/1/

In the first case, everything is correct. The button has a submit type.
In the second case, the button has the button type, and we catch its click using javascript (jquery is used in the example). When clicked, submit the form. Form field validation not working.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
akral, 2013-09-19
@artishok

Obviously, you can't force native validation from a browser.
Reply to a topic on StackOverflow .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question