JQuery removed background from iframe
Posted
by Webnet
on Stack Overflow
See other posts from Stack Overflow
or by Webnet
Published on 2010-03-22T13:08:19Z
Indexed on
2010/03/22
13:11 UTC
Read the original article
Hit count: 279
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'
});
© Stack Overflow or respective owner