$( "#foo" ).bind( "mouseenter mouseleave", function() { $( this ).toggleClass( "entered" ); }); http://jsfiddle.net/WCR4X/2/