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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T09:58:30+00:00 2026-06-09T09:58:30+00:00

To understand the effect of .insertAfter , I designed a small table test that

  • 0

To understand the effect of .insertAfter, I designed a small table test that has 2 rows and 2 columns.

 <table id="myTable" width="560" border="1" cellspacing="2" cellpadding="2">
        <tr>
          <td title="row 1*1" class="styletest">1*1</td>
          <td title="row 1*2" class="styletest">1*2</td>
        </tr>
        <tr>
          <td title="row 2*1" class="styletest">2*1</td>
          <td title="row 2*2" class="styletest">2*2</td>
        </tr>
     </table>

The jquery code is:

var $tooltip = $('<div id="tooltip"></div>');
$tooltip.insertAfter('#myTable').hide();//I want to know the code after inserting this element.

function showTooltip(cell) {
    $tooltip.show().text(cell.attr("title"));
}
$('.styletest').hover(function() {
    showTooltip($(this));
 }, function() {
    $tooltip.hide();
 });

The test includes hovering different cells and display tooltips.
The demo is at jsfiddle.

I want to know the source code when I hover different cells.
For example, when I hover row 1, column 1, the snapshot likes:
row1col1
When I hover row 2, column 2, the snapshot likes:
row2col2

Questions:
When mouse hovers row 1 column1 and row 2 column 2;

  1. Do they have the same rendered source code?(Using F12 can’t get the rendered code when hovering)
  2. Why the tooltips are displayed in the same position that seems in the middle?
  • 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-09T09:58:31+00:00Added an answer on June 9, 2026 at 9:58 am

    It’s the same element, you are just changing it’s content and visibilty. It’s not going to move, and other than the content you are setting with text() the markup is not going to change either.

    You don’t need to inspect anything, the source code is right there in your script, and what you insert is what you get, so to speak!

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

Sidebar

Related Questions

I would like to understand what effect has enablig the flag TextFormatFlags.TextBoxControl when using
I've seen this line in many shell scripts but I don't understand the effect
I am a beginner and I cannot understand the real effect of the Iterable
can anybody help me understand how Honda achieved this effect: http://testdays.hondamoto.ch/ I mean the
I understand that: '\n' // literally the backslash character followed by the character for
I understand, from MSDN, that ClassInitialize is to mark a method that will do
I need a smooth slide effect and i cant seem to understand what I
I was doing some dynamic effect on DIV using JQuery when I found that
I read about 'side effect' from this website : but still not understand why
I now understand that a clustered index contains all of the row data, not

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.