jquery form $("form").submit() works but it does not work with given form id
<p>It took me a while to extract this simple code from my huge form, please take a look at it:</p>



<pre><code>&lt;script type="text/javascript"&gt;
    $(document).ready(function(){
        $("form #formcontact").submit(function(){
            alert('a');
            return false;
        });
    });
&lt;/script&gt;

&lt;div&gt;
    &lt;form id="formcontact" action="" method="POST"&gt;
       &lt;input id="contact_submit" type="submit" value="sub" /&gt;
    &lt;/form&gt;
&lt;/div&gt;
</code></pre>

<p>This does not work but if I replace <code>$("form #formcontact")</code> with <code>$("form")</code> it works, but I don't want it to be on every form.</p>

<p>Why is that? So strange.</p>
