Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6537203
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:35:19+00:00 2026-05-25T10:35:19+00:00

So I was looking at the jQuery source and I found this: delegate: function(

  • 0

So I was looking at the jQuery source and I found this:

delegate: function( selector, types, data, fn ) {
    return this.live( types, data, fn, selector );
},

So .delegate() function is pretty much just the .live() function. The only difference is the order of the arguments! Why would the jQuery people do such a thing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:35:20+00:00Added an answer on May 25, 2026 at 10:35 am

    People generally omit the selector parameter on live, I’d bet most people don’t even know the selector parameter is there.

    delegate() gives you easy access to the selector parameter, which allows you to ‘scope’ your event listener to just a subset of the whole dom, which can result in better performance.

    It’s awkward to provide additional parameters after passing an inline anonymous function. Since the selector parameter is so useful, it makes sense for jquery to create a more convenient form.

    See:
    http://www.alfajango.com/blog/the-difference-between-jquerys-bind-live-and-delegate/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Looking through the jQuery source in the function now() I see the following: function
EDIT: I THOUGHT The jQuery source I was looking at did something like this:
I've been looking around JQuery libraries for the URL hash, but found none that
Looking at this jQuery example, how can I modify the code so that it
I was looking at the jQuery UI code, and I found that every file
I am looking at the jquery site at the contains selector. $(div:contains('John')).css(text-decoration, underline); How
I'm looking at jQuery source code for tracking the domready event and there's one
I've just started looking at JQuery. I don't have any AJAX in my web
I'm looking at this jQuery Autocomplete example . What I can't figure out is
I've been looking for a solution to this for a while now, have found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.