How can I disable all the submit buttons then re-enable specific ones?
<p>I have the following script inside my asp.net mvc 3 web application to disable all the submit buttons when the user click on them to prevent successive submition for the same data: </p>

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

<p>The above script is working fine, but disabling the submit buttons such as "search" will prevent the users from performing another search unless they refresh the page.
So I was thinking if I can modify my script to re-enable the submit button after let say 2 seconds.
I tired to use <code>delay()</code> but it did not work.</p>

<p>So I have the folloiwng questions :</p>

<ol>
<li><p>Is my approach valid for defining a delay time?</p></li>
<li><p>How I can define a delay time and then re-enable the button.</p></li>
</ol>
