2. Handling Events

The single most common task you’ll find yourself performing with jQuery is event handling. Browser events, mouse events, and keyboard events are easily directed and interpreted by the jQuery library’s methods and functions.

When you combine the event-handling capability of jQuery with the ability to easily select DOM elements, you get a powerful and easy-to-use combination. For instance, a single mouse click can set off a chain of instructions, such as including animations, sending information to a server, or changing the text of the page. A blur event (as seen in Chapter 1 ...

Get jQuery and jQuery UI: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.