I need to do this:
var tempDoc;
$(tempDoc).load('<html>' + $(document).find('html').html() + '</html>');
and then do this:
$('body', tempDoc).css('background-color', '');
However when I do this, background-color removal also affects the $(document).
Is there a way to dump the $(document) into a temporary variable and change elements in it without affecting the $(document) itself?
Please let me know if this even make sense.
I don’t think I get this at all, but is there a reason you can’t just do:
FIDDLE