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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:33:12+00:00 2026-06-08T09:33:12+00:00

I am new to JavaScript and qTip and I can’t manage to do something.

  • 0

I am new to JavaScript and qTip and I can’t manage to do something. I have a table with images and I need a qTip with the image’s description for each one of them. I load the images and the content from the database. How do I write this? From what I’ve read I need to add the description to a hidden div and access the div from the JavaScript function. The only problem is I don’t know how. Cold you please show me how to do this?

  • 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-08T09:33:14+00:00Added an answer on June 8, 2026 at 9:33 am

    Assuming that your HTML markup looks more or less like this:

    <td>
        <img title="First img">
    </td>
    <td>
        <img title="Second img">
    </td>
    

    Here’s what you can do:

    $('td').each(function() {
        var img = $('img', this);
        $(this).qtip({
            content: img.attr('title'),
            show: 'mouseover',
            hide: 'mouseout',
            position: {
                 target: 'topMiddle',
                 tooltip: 'bottomMiddle'
            }
        });
    });
    

    The idea is to go through all holders, get the underlying image and the tooltip content (in this case img.attr('title')) and generate tooltip with this custom content.

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

Sidebar

Related Questions

I have a situation, where I need to create a new JavaScript object that
I`m new to JavaScript and I need some help extracting the ID from URL
im new at javascript and i can get this slider to work but not
I have been developing a new JavaScript application which is rapidly growing in size.
I started playing with HTML5/CSS3 and the new JavaScript API something i noticed in
I have a view that contains a javascript function that i need to init/call
I'm quite new to Javascript and I was just reading following article. you can
I was checking out HTML5 new javascript commands and there is something similar to:
I have an iframe Facebook application (using Facebook's new JavaScript API) that needs to
i am new to Javascript and i have created the code below it works

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.