The value of the parameter content should be a function which gets the content. I thought I can use something like this:
$(".fancy-detail-page").fancybox({
'content' : function(){
var id = $(this).attr('id');
id = id.replace("pd", "c");
var content = $('#' + id + ' .product-details').html();
return content;
},
'padding' : 0,
'openEffect' : 'none',
'closeEffect' : 'none',
'maxWidth' : 960
});
But return doesn't seem to work. How is this correctly done?
id. So I would have to put in aclickfunction I think. - testing