JQuery click event not working correctly after class change
<p>I have JQuery script similar to this:</p>

<pre><code>$('.follow_link').click(function(){
  // Do some stuff
  $(this).removeClass();
  $(this).addClass("unfollow_link");
});

$('.unfollow_link').click(function(){
  // Do some stuff
  $(this).removeClass();
  $(this).addClass("follow_link");
});
</code></pre>

<p>My problem is that after I change the class the link is still refering to it's old class' click event.
Is there a way of rebinding? Or am I doing this a bad way?</p>
