title: jQuery: how to unbind an event binded to document object?
body: <p>I've a bad-programmed library which is doing this</p>
  
  <pre><code>$(document).on('click','#keep_first_only_button', function(){
  </code></pre>
  
  <p>I wrote, after this, a piece of code to 'override' this bad behaviour</p>
  
  <pre><code>$("keep_first_only_button").unbind("click");
  $("keep_first_only_button").on("click", selectKeepFirstOfAll);
  </code></pre>
  
  <p>BUT this is not working, then document.click function handler is triggered again</p>
  
  <p>I cannot unbind all click events from document, because disasters will happen in the page.</p>
  
  <p>Which is the right way to proceed in this situation?</p>
  
  <p><strong>EDIT: Sorry for time loosing question, I didn't see the missing '#' in my selector. I'm really sorry !</strong></p>