The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jQuery – Better understanding of .live(); Re: jQuery – Better understanding of .live();


Apparently, .live() was replaced sometime by .on(). From the jQuery site:

> “As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live().”

However, I’ve seen instances in 1.7.4 and up where .on() just didn’t work and .live() actually did. So I’ve always been confused about this and haven’t had time to look further into it. So for me, if one doesn’t work, I try the other. And that does work sometimes.