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, v2 course.

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

Brief history of event delegation methods live and die. The live method binds events to document so if the page changes the events will still work. The problem is that document is the worst element to bind to because it has to walk all the way up the page Don’t use live and die anymore. The methods are deprecated as of jQuery 1.7 and don’t work with traversal Event delegation methods delegate and undelegate. Binding event handler to containing element after document is ready

Get Unlimited Access Now