Skip to content

Instantly share code, notes, and snippets.

@edomaru
Created December 19, 2013 03:13
Show Gist options
  • Save edomaru/8033810 to your computer and use it in GitHub Desktop.
Save edomaru/8033810 to your computer and use it in GitHub Desktop.
live() function for jQuery above 1.3
var count = 0;
$("body").on({
click:function(){
$(this).after("<p>Another paragraph! "+(++count)+"</p>");
}
}, "p");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment