Execute some functions without submit and then submit
<p>I have two inputs the must be validate on submit.
I'm trying this:</p>

<pre><code>$("#phase1_form").submit(function(e){
    var result1 = $("#phase1_responsVibleByFirstSignOff").isValid();
    var result2 = $("#phase1_responsibleBySecondSignOff").isValid();
   if ((result1
        &amp;&amp; result2
    ))  
    {   
        return true;                                                                                                                                      
    }   
}); 
</code></pre>

<p>But the "isValid" function is not so fast and the form is submitted.
I though that maybe I could use the "preventDefault" method, but I have no idea how to "cancel" the effect of this method after the "isValid" function returns some result.</p>

<p>Thanks</p>
