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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T23:06:23+00:00 2026-05-21T23:06:23+00:00

Want to show tooltip with dynamic data on clicking to Have tried many plugins,

  • 0

Want to show tooltip with dynamic data on clicking to
Have tried many plugins, but didnt achieved my goal.

Here my code:

<script type="text/javascript">
$(document).ready(function () {
    $("#tbl td").click(function () {
        $.ajax({
            type: "POST",
            url: '@Url.Action("GetCellData")',
            dataType: 'JSON',
            data: {
                time: $(this).parent().children().index($(this)),
                name: $('td:first', $(this).parents('tr')).text(),
                type: $('input[name="t"]:checked').val()
            },
            success: function (response) {    
                   ///
                   ///        HERE I NEED TO SHOW TOOLTIP
                   /// 
            }
        });
    });
});

I need to use ‘response’ in callback, to show it in tooltip, on muse click to cell.
Can you please reccomend me plugin, for my problem.

  • 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-21T23:06:24+00:00Added an answer on May 21, 2026 at 11:06 pm

    Something like this

        $(document).ready(function () {
            $("#tbl td").click(function () {
                var $td = $(this);
                $.ajax({
                    type: "POST",
                    url: '@Url.Action("GetCellData")',
                    dataType: 'JSON',
                    data: {
                        time: $(this).parent().children().index($(this)),
                        name: $('td:first', $(this).parents('tr')).text(),
                        type: $('input[name="t"]:checked').val()
                    },
                    success: function (response) {
                       var pos = $td.position();
                       $('#tooltip').remove();
                       $('<div/>',{html:response, id:'tooltip'}).css({left:pos.left+10+'px', top:pos.top+10+'px'}).prependTo( 'body' );
                    }
                });
            });
        });
    

    and in your css create these rules

    #tooltip{
        position:absolute;
        width:150px;
        padding:15px;
        border:1px solid #000;
        background-color:#fff;
        color:#000;
    }
    

    You can style the tooltip anyway you like of-course..

    demo http://jsfiddle.net/gaby/fFDhB/1/

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

Sidebar

Related Questions

I want to show dynamic data in tooltip i need something like this website
I have many table cells which I want to show a tooltip once hovered.
I have a custom control (C#, visual studio). I want to show a tooltip
I have an application and I want to show a tooltip every time a
I want to show the data in the tooltip when a columns has long
I have an abstract UserControl that I want to show a ToolTip on. This
i want show tooltip with image tag and i have written code like below
I have a canvas element and I want to show a tooltip following the
i have a table. in each table i want it to show a tooltip
Can any help with this, i have an app, i want to show tooltip

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.