You're best served doing that simply with a CSS print stylesheet.
Just add: <link rel="stylesheet" type="text/css" media="print" href="print.css" /> and set all elements you don't want to print to "display: none". Here's an Oldie-but-Goodie guide to creating a nice one: http://www.alistapart.com/articles/goingtoprint/ HTH, SEAN O http://www.sean-o.com http://twitter.com/seanodotcom rayfidelity wrote: > > > 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 > > -- View this message in context: http://www.nabble.com/Show-hide-and-print-tp22327863s27240p22330446.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.