HTML5 and validation of a programmed form

I tried to figure out what was happening with my HTML5 form validation, and I noticed that:

  • when I submit the form using the submit button, validation is done OK
  • when you try to submit the form programmatically using the jQuery submit () function that it submits, and validation does not work.
  • when I run the submit form button programmatically, validation works

It is compatible in all OSX browsers (FF5, O11, Chr13), but Safari 5, which is actually not checked in any of the cases.

This is where jsFiddle is tested.

Any idea why the second option is not working?

+5
source share
2 answers

, - . , , js.

+1

, , ​​ click <input type="submit" /> .

, (, - ), enter. , , , .

, html5 HTML5 Constraint API, .

- checkValidity() HTML5?

libraies JavaScript, .

+1

All Articles