JQuery removed background from iframe
- by Webnet
I'm trying to remove the background image on a page that's being loaded via an iframe within a lightbox effect. I have verified that body is the correct element within the iframe that's being selected, but I can't get the background image to go away. Am I missing something obvious?
var body = jQuery('#fancybox-frame').contents().find('body');
body.css({
'background': '',
'background-image': '',
'background-color': '#fff'
});