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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:01:30+00:00 2026-05-13T12:01:30+00:00

The normal behavior for the jQuery qTip plugin is to create a new hidden

  • 0

The normal behavior for the jQuery qTip plugin is to create a new hidden div for every tooltip item assigned. Is there a way to tie a single hidden tooltip element to multiple targets, to avoid cluttering the DOM?

Contrived Example:

<div id="foo1"></div>
<div id="foo2"></div>

<script> $("#foo1,#foo2").qTip({"content":"test"}); </script>

<!-- Creates two elements, rather than one: -->
<div class="qtip" style="display:none;">test</div>
<div class="qtip" style="display:none;">test</div>

If qTip is unable to do this, can anyone recommend another jQuery-based tooltip plugin which supports rich HTML using only a single tooltip container? Thanks!

  • 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-13T12:01:30+00:00Added an answer on May 13, 2026 at 12:01 pm

    You can construct qTip boxes dynamically.

    Html:

    <a id="some-link" href="#">Show a qTip</a>
    <div id="hidden-element" style="display:none"></div>
    

    Javascript:

    $('#some-link').click(function() {
        $('#hidden-element').qtip({
            content: {
                text: '<div>Insert content here</div>',
                prerender: true  //as of beta3, this option is false by default
            },
            // etc, etc
        });
    
        qtip = jQuery('#hidden-element').qtip('api');
        qtip.show();
    
        return false;
    });
    

    See http://craigsworks.com/projects/qtip/docs/api for details on the qTip API

    EDIT: June 22, 2011 (justgrumpy) – As of beta3 the qtip does not prerender by default. ‘prerender’ must be set to ‘true’ in the content option for the qtip to display dynamically.

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

Sidebar

Related Questions

Is it normal behavior for the frame src page not to apply the css
What is the normal behavior in Objective-C if you call a method on an
Normal way: class A: def __init__(self): self.a.b.c = 10 def another_method(self): self.a.b.c = self.a.b.c
I have a jquery ui draggable div, and the HTML contents do not behave
Is there any way to prevent a click from an <a> triggering delegated click
i'm currently exploring jQuery's plugin authoring and: var methods = { init : function(options)
I put a jQuery slider in my page, and when I add a new
I have been trying to create rotating object using jQuery and without any other
Is it normal behavior for FBConnect to always switch to the Facebook Application or
Consider the following WCF service which participates in a distributed transaction. The normal behavior

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.