Differences Between jQuery .bind() vs .live() vs .delegate() vs .on()(www.elijahmanor.com)

submitted by elijahmanorelijahmanor(1448) 3 months, 20 days ago

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 |category: |Views: 295

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

posted by dpetersondpeterson(4397) 3 months, 19 days ago 0

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?

Reply

posted by vincentw56vincentw56(169) 3 months, 19 days ago 0

Very nice article. There is a lot of good information.

Reply

information Login or create an account to comment on this story