I have several nested tables that I want to hide / show when I click on one of the top-level rows.
The markup in a nutshell:
<table>
<tr>
<td> stuff </td>
.... more tds here
</tr>
<tr>
<td colspan = some_number>
<table>
</table>
</td>
</tr>
</table>
Now I use jQuery to target the links in the first row of the table. When this link is clicked, it pulls some data down, formats it as a bunch of table rows, and adds it to the table inside. Then it applies .show () to the table. (All this is done using id / class targeting. I left them from the example for brevity).
This works great in firefox. Click the link, the data will be downloaded, the main table will expand, and the second table will be filled and added.
Problem - Internet Explorer gives me a finger. As far as I can tell, the data is being added to the internal table. The problem is that .show () doesn't seem to be doing anything useful. To make matters worse, I have a page with this functionality that works great in both - the only difference is two things:
In the one that works, the inner table is wrapped in a div. I even tried wrapping the table in this example in a div without success. In what does not work, I have downloaded an additional jQuery plugin, but I uninstalled this plugin and tried the page without it, and it still could not display the internal table.
I tried connecting .show to the parent tr, parent td and the table itself without any success. I need to skip something incredibly simple because, as far as I can tell, this should work.
Has anyone come across anything like this before?