-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Learning jQuery - Fourth Edition - Fourth Edition
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 web site at http://www.packtpub.com/support.
The challenge exercises may require the use of the official jQuery documentation at http://api.jquery.com/.
Modify the table row striping routine so that it gives no class to the first row, a class of alt to the second row, and a class of alt-2 to the third row. Repeat this pattern for every set of three rows in a section.
Create a new selector plugin called :containsExactly() that selects elements with text content that exactly matches what is put inside the parentheses.
Use this new :containsExactly() selector to rewrite the filtering code from Listing 9.3.
Create a new DOM traversal plugin method called .grandparent() that moves from an element or elements to their grandparent elements in the DOM.
Challenge: Using http://jsperf.com/, paste...
Change the font size
Change margin width
Change background colour