Hello!
I have a background image in my site, but when I open a fancybox, that background image would appear in fancybox's body, too. Is there a way to get the body element inside the iframe so that I can apply an id to it?
I tried this:
$("#appointment-form").fancybox({
'width' : 500,
'height' : 300,
'transitionIn' : 'fade',
'transitionOut' : 'fade',
'type' : 'iframe',
'onComplete' : function () {
$('body').attr('id', 'fancybox_body');
}
});
But it changes the id of the main page.
Thanks!