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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:26:18+00:00 2026-05-13T19:26:18+00:00

I am using HTML and Jquery I have got below issue, I have an

  • 0

I am using HTML and Jquery

I have got below issue, I have an below HTML code

<table style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
    border-bottom-style: solid" cellspacing="1" cellpadding="1" width="100%" border="1">
    <tbody>
        <tr>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                background-color: #dfdfdf; text-align: left; border-bottom-style: solid" align="left">
                <strong>Type of Course</strong>
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                background-color: #dfdfdf; text-align: left; border-bottom-style: solid" align="left">
                <strong>Courses </strong>
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                background-color: #dfdfdf; text-align: left; border-bottom-style: solid" align="left">
                <strong>Credits</strong>
            </td>
        </tr>
        <tr>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                background-color: #dfdfdf; border-bottom-style: solid">
                Core
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid" id="Communication">
                Communication Course
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
                5
            </td>
        </tr>
        <tr>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
                English Course
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
                5
            </td>
        </tr>
        <tr>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid" id="Mathematics">
                Mathematics Course
            </td>
            <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
                border-bottom-style: solid">
                5
            </td>
        </tr>
    </tbody>
</table>

<div style="display: none">
    <ul>
        <li id="CommunicationTooltip">
            <a href="#" class="toolTip">
                <img src="/images/q_mark.gif" alt=""/><span style="width: 500px;">Testing Communication.</span>
            </a>
        </li>
        <li id="MathematicsTooltip">
            <a href="#" class="toolTip">
                <img src="/images/q_mark.gif" alt=""/><span style="width: 500px;">Testing Mathematics.</span>
            </a>
        </li>
    </ul>
</div>  

In above HTML code you will see that we have many TD, some without there ID and some TD are having ID and below you see that I have DIV with LI having ID same as used in above TD with extra Tooltip in it.

Now I want when pages loaded matching there ID (TD and LI) including extra Tooltip text, the below A HREF text will be added in that particular TD,so that it will result below HTML for that TD

   <td style="border-top-style: solid; border-right-style: solid; border-left-style: solid;
        border-bottom-style: solid" id="Communication">
        Communication Course 
<a href="#" class="toolTip">
        <img src="/images/q_mark.gif" alt=""/><span style="width: 500px;">Testing Communication.</span>
    </a>
    </td>

Please suggest solution using Jquery

  • 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-13T19:26:19+00:00Added an answer on May 13, 2026 at 7:26 pm

    Based on your markup, this should do it:

    $(document).ready(function() {
    
        // bind to cells with an ID attribute
        $("table > tbody > tr > td[id]").mouseover(function() {
    
            // grab the anchor from the LI whose ID starts with the cell's ID
            var $tooltip = $("div:hidden li[id^=" + $(this).attr("id") + "] a");
    
            // append it to the current cell
            $(this).append($tooltip);
        }).mouseout(function() {
    
            // remove the anchor/tooltip
            $(this).find("a").remove();
        });
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using HTML and JQuery. I have got below HTML for the dropdown.
I am using Jquery. I have got below links in my html <a class=load-fragment
I am using JQuery and I have below code. $(#departure_city).change(function() { $.ajax( { type:'post',
I have a simple HTML. I am using the JQuery for AJAX purpose. Now,
I have a simple html page with a div. I am using jQuery to
I have a simple html block like: <span id=replies>8</span> Using jquery I'm trying to
I am using jQuery and Ajax. My MainFile has the following code: <html> <head>
I'm using the jquery library to load the content of an html file. Something
I am using jQuery. I call a JavaScript function with next html: <li><span><a href=javascript:uncheckEl('tagVO-$id')>$tagname</a></span></li>
I would like to manipulate the HTML inside an iframe using jQuery. I thought

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.