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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:27:04+00:00 2026-06-01T00:27:04+00:00

In a asp.net/c# web application I am writing a jQuery script. I have an

  • 0

In a asp.net/c# web application I am writing a jQuery script.

I have an event function like this:

function showInfo(event,label){
    switch (label)
    {
        case 'America':
            //Show America's info
            break;
        case 'Europe':
            //Show Europe's info
            break;
        case 'Africa':
            //Show Europe's info
            break;
    }
}

I want to show the info in a box. The info box should support basic HTML elements like pictures and tables; What is the best way to do this?

I tried to use qtip2 but I didn’t know how to show a tooltip through that function (There is no elements to link the tooltip to).
I want to have some function like ShowTooltip() that I can call whenever I like.

  • 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-01T00:27:05+00:00Added an answer on June 1, 2026 at 12:27 am

    Give all the elements you want to do this to the same class, then create an on hover function like so;

    $('body').on("hover", ".tooltipclass", hoveron, hoveroff);
    

    Then create your hover on/off functions. Depending what kind of elements you are trying to do it to there are lots of ways you could achieve this, you could give the element another class name such as america or europe, then use $(this).hasClass to check which tooltip to display.

    As far as the actual mechanics of displaying the tooltip are concerned, you could have the tooltips hidden on the page already, or bring them in with an AJAX call, then position them based on mouse position, see here http://docs.jquery.com/Tutorials:Mouse_Position

    Of course lots of people have already done this so you could just look for a tooltip plugin

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

Sidebar

Related Questions

I am working on a ASP.NET/C# web application. I am writing a Jquery script.
I'm writing an ASP.NET 3.5 web application. There is a rather complex input form
I have a asp.net web application which has a number of versions deployed on
We have an intranet asp.net web application which uses the OOTB ASP.net membership and
I have an ASP.NET web application which does the following: Reads an Excel file.
I need your advice. I'm writing an ASP.NET web application and I'm considering whether
I'm writing a log parser for an asp.net mvc2 web application. I use Entity
I am writing web application using ASP.NET MVC + NHibernate + Postres stack. I
I'm writing a ASP.NET web application. It dosen't use Web Forms or MVC. It
My application I have an application design that looks like this: web application layer

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.