title: jquery change onclick event of href
body: <p>I have a href element and that has onclick event on it. I want to change the function after some event. I tried using jquery but the old one and new function both are fired. I want only the new one t be fired.</p>
  
  <p>My Code is as:</p>
  
  <pre><code>&lt;a href='#' id='cvtest' onclick='testMe("One")' &gt;TEST&lt;/a&gt;
   after some event i am adding following code:
  $("#cvtest").click(function(){ testMe("Two"); });  
  </code></pre>
  
  <p>When i click "Test" link i get 2 alerts "One" and "Two".</p>
  
  <p>How to stop the first event getting fired or is there any other solution to this problem?</p>