Temporary disabling a Submit Button
<p>I have a form which upload a big file to server.  Something like this:</p>

<pre><code>&lt;form id="myform" action="myaction.php"&gt;
  &lt;p&gt;
    &lt;!--fields --&gt;
  &lt;/p&gt;
  &lt;input type="submit" class="submit" value="Send" /&gt;
&lt;/form&gt;
</code></pre>

<p>I need to prevent the user resubmit the form while the previous processing is not ready. How can I disable submit button before processing and enable the button after submit action?</p>
