submit event does not fire if submit initiated programmatically

That’s because you shouldn’t just use the submit function, but trigger the submit like:

$("#MyForm").trigger('submit');

Leave a Comment