I have the following snippet;
$("a.lightbox_image").each(function () {
$(this).fancybox({
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'speedIn': 600,
'speedOut': 200,
'content': $('#lightbox_image_content_'+this.id.replace('lightbox_image_','')).html()
});
});
But the above does not get the content from the element referenced to in the content property - what am i doing wrong?