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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 379k
  • Answers 379k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer All, Was able to finally find the answers to my… May 14, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer Dll files are created only if there is an Inline… May 14, 2026 at 9:29 pm
  • Editorial Team
    Editorial Team added an answer This is a guess: It's possible that one of your… May 14, 2026 at 9:29 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.