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 exercise may require use of the official jQuery documentation at http://api.jquery.com/.

  1. Modify the key computation for the first table so that titles and authors are sorted by length, rather than alphabetically.
  2. Use the HTML5 data in the second table to compute the sum of all of the book prices, and insert this sum into the heading for that column.
  3. Change the comparator used for the third table so that titles containing the word jQuery come first when sorted by title.
  4. Challenge: Implement ...

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