Example 1

Using .click and mouseout I pass the attribute to the sibling class to add text to the example window.

DEMO

Example 2

Using .click and mouseout again I pass the background color to the css and then change back on mouseout.

DEMO

Example 3

Using .click and mouseout again I pass the background color change but this time by adding and removing the class.

DEMO

Example 4

Go

Using .after to add "Red Sox" after "Go" in current text field.

DEMO

Example 5

Red Sox

Using .before to add "Go" before "Red Sox" in current text field.

DEMO

Example 6

Using .animate to change opacity and move field left and right.

DEMO

Example 7

Using .animate to change opacity and move field left and right while using .delay to delay the animation.

DEMO

Example 8

Yankees
SUCK!!!!

Using .empty to remove the "yankees" class on click of the DEMO button.

DEMO

Example 9

Using .hide to make the image disappear and then .show to make it reappear again after using .delay to pause the transition.

DEMO

Example 10

Using .not to select any div's that are in the current div that do NOT have the class "colorgreen" assigned and changing their CSS background to red.

DEMO

Example 11

Using .prepend to add bold text to the beginning of the div and become the first thing in the div.

DEMO

Example 12

Using .remove to remove the class from the div removing all class properties.

DEMO

Example 13

Using .children and .css to edit only the background color of the nested child div.

DEMO

Example 14

Using .parent and .css to edit only the parent div's background color that the child ".example14inside" is nested in.

DEMO

Example 15

Using .prev and .css to edit only the previous item that comes before the selected div.

DEMO