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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:20:39+00:00 2026-05-10T18:20:39+00:00

I have some nested tables that I want to hide/show upon a click on

  • 0

I have some nested tables that I want to hide/show upon a click on one of the top-level rows.

The markup is, in a nutshell, this:

   <table>     <tr>       <td>stuff</td>       .... more tds here     </tr>     <tr>       <td colspan=some_number>         <table>         </table>       </td>     </tr>   </table> 

Now, I’m using some jQuery to target a link in the first table row. When that link is clicked, it pulls some data down, formats it as a bunch of table rows, and appends it to the table inside. Then it applies the .show() to the table. (this is all done via id/class targeting. I left them out of the sample for brevity).

This works beautifully in firefox. Click the link, data gets loaded, main table ‘expands’ with the secondary table all nice and filled in.

Problem is — Internet Explorer is giving me the finger. As best as I can tell, the data is getting appended to the inner table. The problem is that the .show() does not appear to be doing anything useful. To make matters more annoying, I’ve got a page that has this functionality that is working splendidly in both — the only difference being two things:

In the one that is working, the inner table is wrapped in a div. I’ve even tried wrapping my table in this example in a div without success. In the one that is not working, I have an extra jQuery plugin loaded — but I’ve removed this plugin and tried the page without it and it still fails to show the inner table.

I’ve tried attaching the .show to the parent tr, parent td, and the table itself with no success. I must be missing something incredibly simple, because as near as I can tell this should work.

Has anyone come across something like this before?

  • 1 1 Answer
  • 4 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. 2026-05-10T18:20:39+00:00Added an answer on May 10, 2026 at 6:20 pm

    Keep in mind that the innerHTML of a <table> element is read-only in IE(6 for sure, not sure about 7). That being the case, are you explicitly adding a <tbody> element? If not, try adding one and adding the rows to the body element rather than the table element.

    <table>   <tbody>     <!-- Add stuff here... -->   </tbody> </table> 

    Microsoft info (sort-of) about this: PRB: Error Setting table.innerHTML in Internet Explorer Note: it says this is ‘by design’.

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

Sidebar

Related Questions

I have a group of textboxes that I want to perform some actions upon
I have some UIImageViews that are nested in UIViews, which group them together. They're
I have a rails app with some nested data that I'd like to export
I would like to get some nested params. I have an Order that has
I'm having a problem with some for nested loops that I have to convert
I have an oracle table with nested tables in some of the columns. Now,
I have an HTML page that has many nested tables, for example table for
I have markup with nested tables, rowspans and colspans in a string object. I
I have a delete statement that's going against one of my core application tables.
I have a problem with animations using jQuery on nested tables. I want to

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.