Last active
May 16, 2018 12:10
-
-
Save ilhantekir/9a5462ea8617c39635102227fbbeb2f6 to your computer and use it in GitHub Desktop.
Events bound on an element with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Bind up a couple of event handlers | |
$("#foo").on({ | |
click: function(){ alert("Hello") }, | |
mouseout: function(){ alert("World") } | |
}); | |
// Lookup events for this particular Element | |
$._data( $("#foo")[0], "events" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment