Hi guys,
I'm making an expandable table which currently layers of <table>s are used to contain the table rows in order to show/hide them.
This works, but having to format columns of the child table to be like its parent table can be quite annoying. Before I use tables to do this I use <tbody> to store the <tr>s. Doing so made the format looked perfect unfortunately it could only be used for at most two layers, since having a <tbody> inside another one is illegal.
So my question is; is there another "container" that I can use to show/hide groups of rows, but without having to re-format the rows? Preferably be done on client-side.
Thanks :)
ps. <div> cannot be used to hold table rows, while I think asp:Panel and asp:PlaceHolder might do the trick, I couldn't get them to hide the rows for some reason..
I'm making an expandable table which currently layers of <table>s are used to contain the table rows in order to show/hide them.
This works, but having to format columns of the child table to be like its parent table can be quite annoying. Before I use tables to do this I use <tbody> to store the <tr>s. Doing so made the format looked perfect unfortunately it could only be used for at most two layers, since having a <tbody> inside another one is illegal.
So my question is; is there another "container" that I can use to show/hide groups of rows, but without having to re-format the rows? Preferably be done on client-side.
Thanks :)
ps. <div> cannot be used to hold table rows, while I think asp:Panel and asp:PlaceHolder might do the trick, I couldn't get them to hide the rows for some reason..
Comment