Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 9. Advanced Events > Creating Your Own Events

9.4. Creating Your Own Events

9.4.1. Problem

You want to provide certain behaviors to an element when it’s bound to an event.

9.4.2. Solution

Use jQuery.event.special to do this. This feature requires an object with, at least, a function that will be called each time your event is bound for the time on each element and another function to clean up what you did in the first place.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial