Disable submit button on form submit
<p>I wrote this code to disable submit buttons on my website after the click:</p>

<pre><code>$('input[type=submit]').click(function(){
    $(this).attr('disabled', 'disabled');
});
</code></pre>

<p>Unfortunately, it doesn't send the form. How can I fix this?</p>

<p><strong>EDIT</strong>
I'd like to bind the submit, not the form :)</p>
