This course is out of date and does not reflect our standards or industry best practices. We now recommend you take the Complete Intro to Web Development, v3 course.

Check out a free preview of the full Learning jQuery course:
The "Event Delegation" Lesson is part of the full, Learning jQuery course featured in this preview video. Here's what you'd learn in this lesson:

Karl points out things he actually liked about the live method. You can call it in the <head> section of the page to bind events before the document is even ready $(document).delegate(...) is the same thing as using live Event delegation is great if you want new elements to behave the same as the existing elements in your page Karl demos and explains event delegation further through interactive examples. He also covers more in-depth about DOM objects as per audience questions As of jQuery 1.7, on and off methods now are the methods that provide facilities for all event types (live, die, delegate, undelegate, bind and unbind). “One event handler method to rule them all” on is basically bind, but given an optional second parameter it becomes delegate

Get Unlimited Access Now