O'Reilly logo

Extending jQuery by Keith Wood

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 13. Extending events

This chapter covers

  • jQuery’s special event framework
  • Adding a special event
  • Enhancing an existing event

jQuery makes it simple to connect an event handler to one of the standard events that occur on a web page, such as mouse clicks and keystrokes. In addition to specific functions that work on collections of elements, like click and keyup, you can use the generic bind or on functions to attach a handler to a named event.

jQuery enhances the basic event handling by supporting the attachment of multiple event handlers for the same event on an element and by adding the use of namespaces to help distinguish between these event handlers. It also enables event delegation, where you can connect an event handler to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required