title: How to remove all click event handlers using jQuery?
body: <p>I'm having a problem. Basically, when a user clicks an 'Edit' link on a page, the following Jquery code runs:</p>
  
  <pre><code>$("#saveBtn").click(function () {
      saveQuestion(id);
  });
  </code></pre>
  
  <p>By doing this, the onClick event of the save button calls the <code>saveQuestion()</code> method and passes on the ID of the question for which the 'Edit' link was clicked.</p>
  
  <p>But if in the same session the user clicks edit on 2 questions, then instead of overwriting the previous <code>click</code> event handler, it instead causes 2 event handlers to run, one which might call  <code>saveQuestion(1)</code> and the other might call <code>saveQuestion(2)</code>. By doing this 1 question overwrites the other.</p>
  
  <p>Is there a way to remove all previous <code>click</code> events that have been assigned to a button?</p>