title: Remove events with jquery or javascript
body: <p>I have this:</p>
  
  <pre><code>$(function(){
      //remove keydown doSomething2
      $("body").keydown(doSomething1);
  });
  </code></pre>
  
  <p>In other view I have this:</p>
  
  <pre><code>$(function(){
      //remove keydown doSomething1
      $("body").keydown(doSomething2);
  });
  </code></pre>
  
  <p>How to do what's in the comment? With my current code, both doSomething1 and doSomething2 are called. I want do disabled the one I dont need.</p>