I am having a jquery plugin that loads images from Picasa album. But when am trying to add light box to it, it doesnt work. I have read some where that we can to use .delegat or .live or .on in jquery when content is loaded after the dom loads. But am confused.
This is the actual code in normal cases:
jQuery("#ts-display-portfolio a").prettyPhoto({
animationSpeed:'slow',
theme:'facebook',
slideshow:2000
});
This is what I tried to do, I believe its wrong:
$(document).delegate(
"#ts-display-portfolio a",
"prettyPhoto",
function(){
animationSpeed:'slow',
theme:'facebook',
slideshow:2000;
});
This is how the html is
<a href="img/IMG_3884_large.JPG" >
<img src="img/IMG_3884.JPG">
</a>