Skip to content Skip to sidebar Skip to footer

Listening To All Form Submit Events

jQuery's on('submit', ...) correctly picks up native form submits i.e. when the submit button is pressed, however it doesn't play well with JS form submits, at least on FF&IE W

Solution 1:

Using the jQuery .submit() to submit your form will take care of the problem.

$('#someForm').submit();

jsFiddle Demo

Of course it won't help much if you really insist on using the native DOM .submit().


Post a Comment for "Listening To All Form Submit Events"