Bypass the .submit() handler
<p>I have an event handler for a form submittal that needs to do some work. That work includes making an ajax call to perform some very specific validations. Because of the asynchronous nature, my intent was to <code>preventDefault</code> at the top of the event handler and, if everything went well, submit the form "manually" by triggering the <code>submit()</code> method.</p>

<p>Of course, that drops me into a loop. If I submit and all goes well, then the submit event handler is called when I resubmit. Is there any way to bypass the handler when I trigger the submit manually?</p>

<p>I should add that my geek karma is on empty today so I may be making this much harder than it has to be. If there's a dead simple solution for what I'm trying to do, I'd love to hear it.</p>

<p>I should add that I've put a working solution in place by simply making the jQuery <code>$.ajax</code> call synchronous, but I can't help feeling like there's a more effective way of getting this done that I'm just not seeing today.</p>

<p>Thanks.</p>
