title: jquery enabling a button after some time
body: <p>this code is not working , it disables the code and after sometimes it must enable it , how could i do it? what could be wrong? i am doing this to avoid multiple clicks</p>
  
  <pre><code>&lt;% Html.EnableClientValidation(); %&gt;
      $(document).ready(function () {
          $('#form1').submit(function () {
              $('#btn').attr("disabled", "disabled");
              setTimeout('enableButton()', 50);
          });
          function enableButton() {
              $('#btn').removeAttr('disabled');
          }
      }); 
  
  &lt;% using (Html.BeginForm("Create","OrganizationGroups",FormMethod.Post,new {id="form1"}))
  
  {%&gt;
  %&gt;
  &lt;%= Html.ValidationSummary(false)%&gt; 
  
  &lt;div&gt;
      &lt;%= Html.ActionLink("Back to List", "ManageOrganizationGroup")%&gt;
  &lt;/div&gt;
  </code></pre>