I need to wrap an iFrame in a div wihtout the iFrame reloading the content. Is there a way to suppress the refresh or another way to wrap the content?
wrap
does a wrapAll
function, in which jQuery clones the <iframe/>
, and this causes the refresh in Firefox.
update: I think it is a bug with the iframe handling code in the browsers, because the following code is not working either:
var
$i = $('iframe[src^="http://www.site.com"]'),
$d = $('<div class="test"/>');
$d.append($i);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With