title: How to prevent a double-click using jQuery?
body: <p>I have a button as such:</p>
  
  <pre><code>&lt;input type="submit" id="submit" value="Save" /&gt;
  </code></pre>
  
  <p>Within jQuery I am using the following, but it still allows for double-clicks:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  $(document).ready(function () {
  
      $("#submit").one('click', function (event) {  
  </code></pre>
  
  <p>Any idea on how I can prevent double-click?</p>