Browsers don't fire the form's onsubmit
handler when you manually call form.submit()
.
jQuery also mimicks used to mimick that (see this "wontfix" "bug" report).
See also:
- Should jQuery's $(form).submit(); not trigger onSubmit within the form tag?
- JQuery: on submit doesn't work