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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:02:58+00:00 2026-06-14T21:02:58+00:00

Description I have a div with a table, which each TD of this table

  • 0

Description

I have a div with a table, which each TD of this table will have an event onClick.

But sometimes, I will need to show some texts in front of this table, eventhough, this text can not mess my table’s TDs.

So my problem is, I need to show a text in front of a table, but when I click on this text, it will not affect anything, and the correct clicked TD behind the text should call its event.

What I have done:

I have #div1 and #div2, #div1 is behind, #div2 is the front (both are position:absolute).

So, #div1 is there, but it’s invisible, only #div2 is shown.

Eventhough, only #div2 is being shown, I need to show the text from #div1 in front of #div2.
In order to make this, I put a span on #div1 and set span’s z-index:1.
This way, #div1 is still not appearing, but its span is.

Everything is OK, but I got a new problem now.

I need to click on #div2 (the front), and get the event on the whole div.

Even if there is a text from #div1, it shouldn’t have bussiness there, just be showed.

It’s hard to understand just reading, so I made this Fiddle.

Click on the red “Text1 from #div1…”, I need it to alert the TD html content!

  • 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-14T21:02:59+00:00Added an answer on June 14, 2026 at 9:02 pm

    You can have the click “fall-through” the #div1 span1 with some CSS:

    #div1 span{
      pointer-events: none;
    }
    

    It should work in FF and webkit browsers, but you’re out of luck with IE8 and lower.

    Working example: http://jsfiddle.net/W9jy5/12/

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

Sidebar

Related Questions

I have a table which looks like this (in html): <div id=product_grid_one> <table> <tr>
Description: I have a problem regarding DataGridView . I need to show a Client_Name
trasaction table description field have some value it is worked fine. description feild default
I have a table which is looped in <li> . On mouseover each row,
I have a table which has a button to Add Rows. This button adds
Right now I have a table with a few items, each of which has
Quick method description: I have two tables, lets name them table ONE and table
I have a field 'Description' which can have product descriptions with any unicode characters.
I have a product table where the description column is fulltext indexed. The problem
I have something like this: [Description(Sets the color.), Category(Values), DefaultValue(Color.White), Browsable(true)] public Color MyColor

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.