title: How to disable a form on submit using jQuery
body: <p>I want to disable a form once I submit it. I tried this but it doesn't disable the form:</p>
  
  <pre><code>$( "#myform" ).prop("disabled", true);
  </code></pre>
  
  <p>I am using jQuery/php/ajax. When the user clicks submit the submit button is disabled and a spinner displays in the button. Server side validation is done and errors are displayed or an email is sent and success message is displayed. In that time when the spinner is going, I don't want the user to be able to change anything on the form like click another radio button for example. The form is pretty quick but you never know..</p>