title: Stop jquery event
body: <p>I want if I call my second if else work then first one should stop. But that also keep running. If first one running second should stop.    </p>
  
  <pre><code>if(e.keyCode == 39) {
    setInterval(function(){
    //
  
    }, 10);
  } else if(e.keyCode == 37) {
    setInterval(function(){
  
    //    
    }, 10);
  }
  </code></pre>