Created
July 3, 2013 05:31
-
-
Save ituki/5915666 to your computer and use it in GitHub Desktop.
appendした要素をクリックしたときに、$(this)を得るには ref: http://qiita.com/ituki_b/items/6c651f8032db6a7d40ea
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
$('#list li').live('click', function(){ // | |
alert($(this)); | |
return false; | |
}); |
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
$('#list').on("click",$('li'),function(e){ | |
alert($(e.target)); | |
return false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment