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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T21:31:37+00:00 2026-05-23T21:31:37+00:00

Suppose I am having a DOM structure like this, <body> <!– Dom elements –>

  • 0

Suppose I am having a DOM structure like this,

<body>
    <!-- Dom elements -->

    <div class="red"></div>
    <div class="red"></div>
    <div class="red"></div>

    <!--More Dom elements -->
</body>

You can see there are three elements with class= red. Now suppose of because some user activity two more elements are added to DOM like below.

<body>
    <!-- Dom elements -->

    <div class="red"></div>
    <div class="red"></div>
    <div class="red"></div>

    <div class="red"></div> <!--New element added because of some user activity -->
    <div class="red"></div> <!--New element added because of some user activity -->

    <!--More Dom elements -->
</body>

Now i want some mechanism that whenever news elements get added to DOM they report to a function.

Below is a hypothetical function iam looking for

jQuery('.red').onAddedToDom_AfterDomReady(function(){
               //do something to all added elemnents
               //like bind some events to them etc
});

Is there any existing feature in jQuery that iam missing or any plugin that may help!!

  • 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-23T21:31:38+00:00Added an answer on May 23, 2026 at 9:31 pm

    This would rely on the DOMNodeInserted event which is not supported in IE.

    See related question for IE support

    Basically you have to periodically poll the DOM for any new elements and that’s rather expensive.

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

Sidebar

Related Questions

Suppose i'm having <div> tag with id=toggleText & runat=Server then i can change style
Suppose I have a Comment class having properties and their methods like public Comment
Suppose your git history looks like this: 1 2 3 4 5 1–5 are
Suppose you have this class: public class A { private int number; public setNumber(int
Let's suppose that we have multi-site CMS and every website in this CMS having
I am using Oracle. Suppose I am having a table with this sample, random,
Suppose I modify the HTML DOM on line 1. Can I be sure that
Suppose I have a specific table selected in TinyMCE, like this: var ed =
Suppose I have an array having elements am,john,rosa,freedom . I want to compare these
Is this possible in fluent nhibernate having multiple mappings for one table? Lets suppose

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.