O'Reilly logo

Learning jQuery Third Edition by Karl Swedberg, Jonathan Chaffer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercises

To complete these exercises, you will need the index.html file for this chapter, as well as the finished JavaScript code as found in complete.js. These files can be downloaded from the Packt Publishing website at http://www.packtpub.com/support.

The challenge exercises may require use of the official jQuery documentation at http://api.jquery.com/.

  1. Alter the code that introduces the back to top links so that the links only appear beginning after the fourth paragraph.
  2. When a back to top link is clicked, add a new paragraph after the link, containing the message You were here. Ensure that the link still works.
  3. When the author's name is clicked, turn it bold (by adding a tag, rather than manipulating classes or CSS attributes).
  4. Challenge: On ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required