Forum Moderators: open

Message Too Old, No Replies

Printing a specific class

I am new at this.

         

joe1182

3:41 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



Is there a way I can add a print button using Javascript and have it print only a certain class? I am really new at Javascript and don't know very much.

jbot

4:02 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



I am really new at Javascript and don't know very much.

wouldn't be better to learn the basics than jump straight into something which relatively advanced, even if you are getting someone to do your own work for you.

joe1182

4:09 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



Learning by example is a powerful tool. Just because I am requesting help doesn't mean I am not willing to learn. Can anyone point me in the right direction?

Rambo Tribble

4:20 pm on Dec 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Controlling the print of a certain class is probably best approached with the CSS @media rule.

jbot

4:26 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



Learning by example is a powerful tool. Just because I am requesting help doesn't mean I am not willing to learn.

this is true. but you should still learn the basics before going for some fancy coding, which this would generally entail. if you know the basics, then you'll understand what's going on.

joe1182

5:19 pm on Dec 17, 2004 (gmt 0)

10+ Year Member



thanks! Rambo