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 8509355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T03:24:44+00:00 2026-06-11T03:24:44+00:00

I am interested in knowing when bind function should be used and when delegate

  • 0

I am interested in knowing when bind function should be used and when delegate function should be used in jquery. Do they not perform the same functionalites? What is the difference?

  • 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-06-11T03:24:45+00:00Added an answer on June 11, 2026 at 3:24 am

    You use bind (or better yet, on, as bind is deprecated; noted by @Yoshi) when you have a few, existing elements you want to bind event listeners to. You use delegate when the elements you want to handle do not exist yet (e.g. they are dynamically generated and you don’t want to bind handlers to each new element you create, but they have a common parent you can put the delegate on), or when you’re handling events on a lot of elements with a common parent (which is more efficient with a delegate on the parent than with individual handlers on each element).

    DOM events bubble up the DOM hierarchy, so when you click on an element onclick handlers for that element are triggered, then handlers on its parent, then its parent, and so on (unless a handler calls stopPropagation on the event, which cancels the further bubbling up. When you use bind/on, you attach your handler to the specific element you want to handle, and it is triggered directly by the target you’ve set it up on; when you use delegate, a jQuery internal handler is attached to the element you specify, and it catches the event on its way up the bubble chain; jQuery then checks if the actual target (which is a child of the element the handler is attached to) matches the selector you’ve specified with the delegation, and if it is it is invoked (it is called as if your actual handler was attached to the target element and not the parent element; noted by @shannon).

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

Sidebar

Related Questions

I am interested in knowing how databases handle connections that are not explicitly closed
I am interested in knowing about what other teams are doing about limiting internal
I'm interested in knowing what high quality and useful add-ons or utilities are available
I'm interested in knowing how revision-control systems do merging. Suppose you have a file
I am new to debugging and I'm very interested in knowing how to setup
I've been programming for some time but never got interested in knowing in theory
Just interested in knowing if there are any good (and short! :-) ) articles
I'm interested in knowing how much the IPC mechanisms are meant to be exposed
I am interested in knowing what the best software would be to build an
I am interested in knowing what is the Python convention for newlines between the

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.