Hello, You should try to launch your new jQuery behaviour in a separate function like this :
... { $("#main_area").append("<div class="pics"><a href="pics/1.jpg"><img src="pics/1_thumb.jpg" width="100px" height="100px"></a></div>"); behaviourOnNewElements(); } function behaviourOnNewElements() { $(".pics a").click(function(event){ return null;