I need to format a document differently when it is printed. Basic stuff, media print vs. screen, however this particular webpage is getting some inline styles inserted dynamically. How do I strip them before sending to print?
I am adding an element with jQuery, which is not visible on the screen but appears in print (#myElement). So I've attempted to piggyback on that element but did not really succeed.
if ($('#myElement').is(':visible')) {
$('.myContent').attr('style', '');
}
What am I missing?
Thanks.