[jQuery] Show hide and print

[jQuery] Show hide and print


Hi,
I have a problem, I have an element which I show (let's say fadein
("slow")) on certain action (it's set on display:none in CSS).
The problem is that i want to print that page without that
element...how can i do that... fadein, show,... all set the element on
display:block which means the element will apper no matter what.
I've tried something like this
$("#gototop").attr("style","@media print{display:none;}");
I wan't the element to be seen on screen, but not for printing!
but it doesen't work...
Thank,
BR