Two submit event handlers on a form. One must stop the other
<p>I have to event handlers attached to a form. The first one that fires should stop the other event if a condition is not met.</p>

<p>The code below does not work, as both events will be triggered. Can you help me?</p>

<p>Thanks!</p>

<pre><code>//fires first
$("#myform").submit(function(){
  if (some validation) {
    alert("You need to make the form valid");
    return false;
  }
});
//fires second
$("#myform").submit(function(){
  //ajax stuff
  return false;
});
</code></pre>

<p>p.s. I have to this as the ajax stuff is in a plugin that is not changeable. I cannot avoid two event handlers</p>
