I want to append some HTML inside this div, and the HTML has to have a click event on it also.
hello, world!
As of jQuery 1.3, this will work:
hello, world! $(".myClass").live("click", function(){ $(this).after("Another paragraph!"); });
Another paragraph!
See more about live events on this page:
http://docs.jquery.com/Events