Read a chapter of the book
before you start each set.
Shop for it at Amazon
A Smarter Way to Learn
jQuery
Practice Exercises
Click to select a chapter to practice.
Target and action
Add a class
Select by class
Select by id
Read what the user has entered
Fill in a form field for the user
Setting versus getting content
Fade in and out
Watch for a click
Do something when there's a click
Slide something into view
Show and toggle
Change styling inline
this
Select multiple elements
An alternative for selecting multiple elements
Replace an id
Remove things
Toggle a class
Replace things
Another way to replace
Variables in jQuery
Variable names legal and illegal
Personalize a heading
Add HTML to existing text
Chaining
Adding jQuery to your page
document.ready
Add something at the end
Add something at the beginning
Insert something after something else
Insert something before something else
More about changing attributes
Remove an attribute
Dealing with id and class attributes
Changing attributes: two more examples
Make a "Show more" feature
Animate an expansion
Fly something in from the side
Fly it to the center
Animate two moves at once
Let jQuery measure the picture
Measure exactly what you want
Fly something by changing its margin
Delay
Stop a slide or animation
Swap images using toggle()
Change opacity
Give something a chance to finish
Make animated tabs Part 1
Make animated tabs Part 2
Make animated tabs Part 3
Make animated tabs Part 4
Size divs to fit the window
Scroll to the next panel
Animate the scroll
Monitor the scroll position
Make something happen when the user scrolls
Select by even or odd
Select by first or last
Select by next
The DOM
The DOM: Parents and children
Select the first child or last child
Select the first or last child of a type
Select the nth child or the nth child of a type
Select the parents
Select the siblings
Filter
Not
Highlight the active text field
each
Get information about an event
Select elements that contain a particular string
Select elements that have a certain element within them
Select elements by attribute value
Select elements by attribute value fragment
Delegate