title: Disabling the button after once click
body: <p>I need to disable a button once it's clicked so the user can't click it more than once. (My application is written in MVC ASP.NET, I've done this in a normal ASP.NET application.)</p>
  
  <p>I tried using JavaScript and jQuery and it's not working. The button is getting disabled but the form is not being submitted.</p>
  
  <p>jQuery:</p>
  
  <pre><code>$("#ClickMe").attr("disabled", "disabled"); 
  </code></pre>
  
  <p>JavaScript:</p>
  
  <pre><code>function DisableNextButton(btnId) {
      document.getElementById(btnId).disabled = 'true';
  }
  </code></pre>
  
  <p>Both methods work great, but now the form won't submit.</p>