Exercises
Challenge exercises may require the use of the official jQuery documentation at http://api.jquery.com/.
- When
Charles Dickens
is clicked, apply theselected
style to it. - When a chapter title (
<h3 class="chapter-title">
) is double-clicked, toggle the visibility of the chapter text. - When the user presses the right arrow key, cycle to the next
body
class. The key code for the right arrow key is39
. Challenge
: Use theconsole.log()
function to log the coordinates of the mouse as it moves across any paragraph. (Note:console.log()
displays its results via the Firebug extension for Firefox, Safari's Web Inspector, or the Developer Tools in Chrome or Internet Explorer).Challenge
: Use.mousedown()
and.mouseup()
to track mouse events anywhere on the page. If the mouse button is released above where it was pressed, add thehidden
class to all paragraphs. If it is released below where it was pressed, remove thehidden
class from all paragraphs.