Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 15, 2014 11:06
Show Gist options
  • Save carlosrojaso/d9dcf561588baf6282b3 to your computer and use it in GitHub Desktop.
Save carlosrojaso/d9dcf561588baf6282b3 to your computer and use it in GitHub Desktop.
JQ Handling Events
// When a user focuses on or changes any input element, we expect a console message
// bind to multiple events
$( "div" ).on( "mouseenter mouseleave", function() {
console.log( "mouse hovered over or left a div" );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment