title: How to temporary disable the click function when it is executing?
body: <pre><code>$(&quot;#prevPage&quot;).live(&quot;click&quot;,function(e) {
  .................
  });
  </code></pre>
  <p>For example, when the user have already clicked on the <code>prevPage</code>, the statement inside it is running, if the user click on it instantly , it will trigger again. However, I would like the click event trigger only after all the statement inside it have finish execution, How to achieve that?</p>