-
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/.
Alter the code that introduces the back to top links so that the links only appear after the fourth paragraph.
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.
When the author's name is clicked, turn it bold (by adding an element, rather than manipulating classes or CSS attributes).
Challenge: On a subsequent click of the bolded author's name, remove the <b> element that was added (thereby toggling between bold and normal text).
Challenge: Add a class of inhabitants to each of the chapter's paragraphs without calling .addClass(). Make sure...
Change the font size
Change margin width
Change background colour