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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:35:20+00:00 2026-05-24T03:35:20+00:00

Hii i am using qTip 2 i want the class ui-tooltip-dark ui-tooltip-shadow but it

  • 0

Hii i am using qTip 2 i want the class ui-tooltip-dark ui-tooltip-shadow but it doesnt shows that class. I have this code:

    $('.selector').qtip({
   content: {
      text: function(api) {
         // Retrieve content from custom attribute of the $('.selector') elements.
         return $(this).attr('qtip-content');
        }
      },
      title: {
         text: function(api) {
            // Retrieve content from ALT attribute of the $('.selector') element
            return $(this).attr('alt');
         }
      },
     style: {
      classes: 'ui-tooltip-dark ui-tooltip-shadow';
      }
});

But when i put the code that is on their site it works

Can u please tell me where am i going wrong ?

EDIT

    <script type="text/javascript" class="example">
$(document).ready(function()
{
    $('.selector').qtip({
   content: {
      text: function(api) {
         // Retrieve content from custom attribute of the $('.selector') elements.
         return $(this).attr('qtip-content');
      }
     },
      title: {
         text: function(api) {
            // Retrieve content from ALT attribute of the $('.selector') element
            return $(this).attr('alt');
         }
      },
     style: {
      classes: 'ui-tooltip-dark ui-tooltip-shadow';
      }
});
});
</script>
  • 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-24T03:35:20+00:00Added an answer on May 24, 2026 at 3:35 am

    It might just be a typo in what you’ve posted but you’re missing a curly brace around the content section –

    $('.selector').qtip({
       content: {
          text: function(api) {
             // Retrieve content from custom attribute of the $('.selector') elements.
             return $(this).attr('qtip-content');
          }
         },
          title: {
             text: function(api) {
                // Retrieve content from ALT attribute of the $('.selector') element
                return $(this).attr('alt');
             }
          },
         style: {
          classes: 'ui-tooltip-dark ui-tooltip-shadow';
          }
    });
    

    EDIT

    Try this –

    $(document).ready(function()
    {
        $('.selector').qtip({
       content: {
          text: function(api) {
             // Retrieve content from custom attribute of the $('.selector') elements.
             return $(this).attr('qtip-content');
          },
          title: {
             text: function(api) {
                // Retrieve content from ALT attribute of the $('.selector') element
                return $(this).attr('alt');
             }
          }
       },
       style: {
          classes: 'ui-tooltip-dark ui-tooltip-shadow'
          }      
        });
    });
    

    You should be able to see it working here – http://jsfiddle.net/KaJ9q/

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

Sidebar

Related Questions

Hii, I have function established in child page, that is using in the childpages.
hii i am using ajax file upload in this code <script type=text/javascript src=fileuploader.js></script> <script
Hi I'm using this code to generate machine signature. But it's take noticeable time
hii, I am using devexpress xtrascheduler.In this i have created one custom form which
Hi I am using hibernate and Mysql. I have a class with a boolean
Hii I have method in C#, I have to return multiple values from that
Hii, I have created a class file with a name space of name1. I
Hii I was coding for an application that shows the list of running process
Hii, there are many others had already post so many question about this..But here
Hi i using this mysql code to generate this data below: code: SELECT L.LEAVETYPE,

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.