jQuery on live
by fguillen
HTML
<p class="red">This is the static element</p>
JavaScript
$(".red").css({backgroundColor: "pink"}); // this should be called in every element, even the dynamically created
$("<p class=\"red\">This is the dynamic element</p>").appendTo("body");