There is something like this:
$(document).ready(function(){ $("div").bind('click', function(event) { $(this).append("<p>...</p>"); }); $("p").bind('click', function(event){ alert("..."); }) }); The event associated with the element created by the first event does not work. What's wrong?