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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:13:23+00:00 2026-06-18T00:13:23+00:00

I curious to know that when A element has been replaced when ajax load,

  • 0

I curious to know that when A element has been replaced when ajax load, all the events and data blinded on it will be just disconnected or removed directly?

I dont believe any events and data not blinded trough $(parent), $(document) or $(window) will maintain if once has been replaced. If so, are they just been disconnected or removed?

  • 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-18T00:13:24+00:00Added an answer on June 18, 2026 at 12:13 am

    If an event is bound directly to an element (not with delegated event handling), then when that element is removed, so will it’s event handler.

    Similarly, if any properties or attributes have been added to that DOM element, they go with that particular DOM element so if the DOM element is removed so are they.

    If one is using delegated event handling (watching for events that bubble up to a higher level parent object like body or document, then those events will still be in place because the objects the events are actually attached to did not get replaced.


    Your question isn’t tagged with jQuery, but you use some jQuery-like examples so in the jQuery world, an event attached like this:

    $("#myObject").on('click', fn);
    

    Will be removed when #myObject is replaced. But, a delegated event like this:

    $(document.body).on('click', '#myObject', fn);
    

    Will still be in force, even if #myObject was replaced with a different object with the same ID because the object that the event is actually attached to (document.body in this case) did not get removed or replaced.

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

Sidebar

Related Questions

I am just curious to know that why default css doesn't works for all
Just curious to know that if my PC is infected with a Trojan or
This question has been asked in Microsoft interview. Very much curious to know why
I am curious to know that could it be possible that in the below
I am curious about COM+, DCOM. I know that MSFT does not encourage you
I curious to know how the jQuery.load functionality affects page load speeds when reporting
I'm just curious to know about this.When i heard about Spring.net and tried some
I am curious to know that whether optional parameter introduced in C#4 is backward
I know that integer division will always return the same answer as truncation of
Does anyone know of a class in Java that has a list of elements,

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.