I've two calls to same link, first with a effect (slideToggle), and the second with a other action (toggleClass).
for example $( "a" ).click( function() { $( "div" ).slideToggle(); return false; }); $( "a" ).click( function() { $( "div" ).toggleClass( "active" ); return false; }); Thus, every time that I click on link, the actions ( slideToggle and toggleClass ) accumulate. If I does click twice, the first time would stay ok, but the second time would show and hide the 'div' and would add e remove the class "active" in the same time. This problem will solve if I to call the method unbind() before the click, but as I have to call each action in different calls, I cannot do this. I would like to know how i can do this actions without to accumulate: