title: Ajax.BeginForm: disable button while loading
body: <p>Got a working AJAX form:</p>
  
  <pre><code>@using (Ajax.BeginForm(...))
  </code></pre>
  
  <p>I want to disable the button while result is loading.
  If I use this:</p>
  
  <pre><code>$("#submit").click(function () { $("#submit").button().attr('disabled', true).addClass('ui-state-disabled'); })
  </code></pre>
  
  <p>It disables the button, but form doesnt send anything to the controller.
  How can I fix that?
  (and yes, I barely know how to use JS)</p>