Differences Between jQuery .bind() vs .live() vs .delegate() vs .on()

added by elijahmanor
2/6/2012 12:17:11 PM

5 Kicks, 490 Views

I've seen quite a bit of confusion from developers about what the real different is between the .bind(), .live(), .delegate(), and .on() methods are jQuery and when they should be used.


2 comments

dpeterson
2/6/2012 1:35:24 PM
We also use the livequery plugin in some of our projects, which executes a callback when an element matching the selector is added to the DOM (rather than on another event like click). Is there an easy way to replace that plugin by just using the new .on() method?

vincentw56
2/7/2012 7:52:45 AM
Very nice article. There is a lot of good information.