$('#myform').submit(function(event) { event.preventDefault(); // Prevents the default submit // your code here (not asynchronous) $(this).unbind('submit').submit(); // continue the submit unbind preventDefault })