form jquery prevent default
<p>I want to prevent the form from submitting, but execute other form handlers, preventDefault stops all.</p>

<p>here's an example:</p>

<pre><code>&lt;form id="example"&gt;
    &lt;input type="text" name="name" /&gt;
&lt;/form&gt;

&lt;form id="example2"&gt;
    &lt;input type="text" name="name2" /&gt;
&lt;/form&gt;

/* generic form handling */
$('form').submit(function(e) {
    alert('hello');
});

/* 
    specific example 
    i want this handler to prevent the form from submitting normally, but at the same time, i want it to execute the above code with the alert "hello"
*/
$('form#example').submit(function(e) {
    e.preventDefault(); // this stops the generic form handling (above) and standard form submission
});
</code></pre>
