-
Book Overview & Buying
-
Table Of Contents
Learning jQuery, Third Edition
By :
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/.
Alter the code that introduces the back to top links so that the links only appear beginning 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 a tag, 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...
Change the font size
Change margin width
Change background colour