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

  • Home
  • SEARCH
  • 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 7980267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:01:00+00:00 2026-06-04T10:01:00+00:00

I have a function which creates a tooltip for specific objects. Currently, I am

  • 0

I have a function which creates a tooltip for specific objects. Currently, I am running a tooltip function after ajax insertions to create and append the new tooltip objects. I am curious if there is a way to use .on() to auto-run the tooltip function on insertion, rather than manually running it.

For instance:

 $('[title]').on('inserted', function(){
     tooltip(this);
 });

I did some reading and it looks like custom triggers might be the way to go, but I’d love if it something like this existed 🙂

  • 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-04T10:01:01+00:00Added an answer on June 4, 2026 at 10:01 am

    Here’s the pseudo code as per request.

    $(document).ready(function() {
        $('body').on('added','*',function() {
            console.log($(this),'has been added');
        });
        $('body').append('<div>This is the first div</div>');
    });
    
    (function($) {
        fncs = {
            append:$.fn.append,
            appendTo:$.fn.appendTo
            // etc.
        }
        // we're assigning the original functions in this
        // object to be executed (applied) later
        $.fn.append = function() {
            fncs.append.apply(this,arguments);
            $(this).children().last().trigger('added');
            return $(this);
        }
        $.fn.appendTo = function() {
            fncs.appendTo.apply(this,arguments);
            return $(this);
            // no need to trigger because this function calls the one
            // above for some reason, and it's taking care of the
            // triggering the right element(s I think)
        }
    })(jQuery);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Currently I have a function which loops to create multiple HTML objects. Each time
Suppose I have some kind of factory function which creates objects that are largely
I am using ajax and asp.net. iI have a javascript function which creates many
I have a function which creates an object of values, but im getting this
I have the following function which creates a std::vector of iterators into another container:
I have function some_func_1 which will create an object of type some_type and will
I have a function to create a pdf which should return bitarray. Below is
I have a function: def create(sender, **kw): [...] Which should be called when the
I have a function which creates an array of Maps: map<string, int> *pMap And
So I have a function which creates a dynamic model. I accomplish this in

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.