A little tip for the next time – first show how it works,If you know how something works behind the scenes you can use it`s full advantage.
Thanks a lot for the screencasts, Yosy
]]>Never liked it…
This is great though, thanks!
]]>Other way (little more dry, but without the delegate method):
$(‘#picturescontainer’).click(function(e) { var tgt = $(e.target); #get the closest img var _img = tgt.closest(‘img’); # possible filter here if (img.hasClass(‘somefilteredclassifwanted’)) { # call the load content here… } });
I’m keep using this approach for dynamic content, however i really don´t know what is the performance price.
Cheers
]]>Thanks for the video, really good as usual. I have tended to use .live() in the past. Is this the same? Or rather which situations would you use the two? Thanks.
Sorry didn’t see the earlier comments…
]]>