title: Form is not submited if using onclick event + javascript
body: <p>I want to disable the submit button for 5 seconds before it becomes clickable. The script works and make the button unclickable for 5 second, but the problem is it doesn't submit the form.</p>
  
  <p>Please help.</p>
  
  <pre><code>&lt;form id="frm_wanted_search"&gt;
  &lt;input type="submit" onclick="lockoutSubmit(this)" name="school_name" id="btn_book_search" value="Search"&gt;
  &lt;/form&gt;
  
  &lt;script&gt;
  function lockoutSubmit(button) {
  var oldValue = button.value;
  
  button.setAttribute('disabled', true);
  button.value = '...processing...';
  
  setTimeout(function(){
      button.value = oldValue;
      button.removeAttribute('disabled');
   }, 5000) }
  &lt;/script&gt;
  </code></pre>