I was trying to figure out for some time what is happening with my validation of the HTML5 form and I noticed that:
- when I submit the form using its submit button the validation works OK
- when try to submit form programmatically using jQuery
submit()
function it gets submitted and validation does not seem to work. - when I trigger the submit button of the form programmatically, validation works
It is consistent in all OSX browsers (FF5, O11, Chr13) but Safari 5, which actually does not validate in neither of the cases.
Why the second option does not work?