Let’s say you have a form and you want to prevent the default action of submitting the form from occurring when the submit button “submit” event is triggered. After the default action is prevented, however, you want the default action to occur. You can do that as follows:
$("form").submit(function(e) { e.preventDefault(); /* do something */ $('form').unbind('submit').submit(); });