Style switching made easy with jQuery

This is a very simple example of the applying a class with jQuery.
Each of the links below has a unique ID,
and all of the content we are changing is in a div with the id of "contentArea".

The jQuery code assigns a class to the contentArea div when any of the links are clicked.
If you wanted to target the whole page, you could assign class to the <body> of your page.

See the code

Disclaimer: The styles in use here are admittedly awful...
just showing the way you can make things change... easily!

Click links to change styles on this page
Content to change

I'm My Own Grandpaw

by Dwight Latham and Moe Jaffe

Howdy!Many, many years ago when I was twenty-three
I was married to a widow who was pretty as could be.
This widow had a grown-up daughter who had hair of red.
My father fell in love with her and soon they, too, were wed.

This made my dad my son-in-law and changed my very life
For my daughter was my mother, 'cause she was my father's wife.
To complicate the matter, even though it brought me joy
I soon became the father of a bouncing baby boy.

My little baby then became a brother-in-law to dad
And so became my uncle, though it made me very sad
For if he was my uncle, then that also made him brother
To the widow's grown-up daughter, who, of course, was my step-mother.

My father's wife then had a son who kept them on the run
And he became my grand-child, 'cause he was my daughter's son.
My wife is now my mother's mother, and it makes me blue
Because, although she is my wife, she's my grandmother too.

If my wife is my grandmother, then I am her grandchild
And every time I think of it, it nearly drives me wild
For now I have become the strangest case you ever saw
As husband of my grandmother, I am my own grandpaw.

Wikipedia link

Roadkill Cafe - you kill it, we grill it!

A Taste Of The Wild Side - Still In The Hide. **
Chunk Of Skunk Smells REAL good! ( basted in Tomato Sauce ) $7.49
Smidgen Of Pigeon Tastes so good, you'll coo for more ( includes salad & French bread ) $3.49
Road Toad Ala Mode Jump into this dish, & you'll croak for more ( ice cream flavours chocolate, vanilla, or strawberry ) $2.99
Rigor Mortis Tortoise Slowly aged to perfection ( includes turtle soup & dumplings ) $7.99


Jquery Code
CSS Styles