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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T01:40:52+00:00 2026-05-18T01:40:52+00:00

I use this tooltip script on my site: http://craigsworks.com/projects/simpletip/ The problem is that I

  • 0

I use this tooltip script on my site: http://craigsworks.com/projects/simpletip/

The problem is that I have several links in the same div class and I want to load different content in tooltip when the mouse is over different links. This is the code I use to load tooltip:

$(document).ready(function(){
// Create your tooltips 
var api = $(".ttip a").simpletip().simpletip(); 
api.load('include.php'); 
});

It would be great if I could send some post parameters in include.php file, based on the link that is actually hovered.

<div class="ttip">
<a userid="1" href="#" >user1</a><br />
<a userid="2" href="#">user2</a>
</div>

I need to catch the user id in include.php file in order to return appropriate information.

Now the tooltip works only for the first link. For the second one some default text is shown instead when I hover it!

Can anyone please help?

  • 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-18T01:40:52+00:00Added an answer on May 18, 2026 at 1:40 am

    You’ll have to assign the tooltips to each element separate and pass the userid using the 2nd parameter of load():

    $(document).ready(function(){
     $(".ttip a")
      .each(
      function(i)
      { 
        var api=$(this).simpletip().simpletip(); 
        api.load('include.php',{userid:$(this).attr('userid')}); 
      })
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have been trying to get this script http://jsbin.com/ipajo5/ working but using .live()
I'm trying to use the qTip jQuery plugin here: http://craigsworks.com/projects/qtip2/demos/#mouse I got the code
Firstly, this is qtip, a jQuery plugin: http://craigsworks.com/projects/qtip2/ Basically it makes pretty tooltips. I
I'm trying to get the qtip example here: http://craigsworks.com/projects/qtip/demos/position/fixed such that when the image
I'm trying to use this tooltip plugin: http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/ . I can't seem to get
I have a bunch of elements that trigger a tooltip on hover. The problem
I use this script in two different servers: function curlGetFileInfo($url, $cookies=default){ global $_config; $ch
i use this script to load content of some div, inside another div: $(function()
I use this tutorial for sign my apk link but I have stopped on
I use this class to parse a .css file. https://github.com/sabberworm/PHP-CSS-Parser I thought it's easy

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.