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/.
Modify the key computation for the first table so that titles and authors are sorted by length, rather than alphabetically.
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.
Change the comparator used for the third table so that titles containing the word
jQuery
come first when sorted by title.Challenge: Implement
get
callbacks for theglowColor
CSS hook.