JQuery: on submit doesn't work
<p>What I am trying is to catch all the form submit events, get the url from the action attribute and use it to send the content of the form to that address using AJAX. So what I need is only one on submit event handler. However I quickly got in trouble as it seems to not be working in IE.  </p>

<pre><code>$(document).submit(function(e) {
        alert('clicked');
        e.preventDefault();
    });  
</code></pre>

<p>This is the code I use for cross-browser testing purpose. It works perfectly in Chrome, Firefox but not in IE. Am I not allowed to set an event listener on document?</p>
