Saturday, March 19, 2011

How to register multiple events into one handler in JQuery?

$('#foo').bind('mouseenter mouseleave blur', function() {
  $(this).toggleClass('entered');
});

No comments:

Post a Comment