Last active
May 17, 2016 06:11
-
-
Save fhefh2015/4b570f671fd7eb6afa93 to your computer and use it in GitHub Desktop.
jquery 为动态添加的元素绑定事件
This file contains hidden or 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
$('someUlSelector').delegate('someLiSelector', 'click', function() { | |
//codes... | |
//$(this) for the current jquery instance of the element | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment