I need to create a complex table that has multiple nested rows.
My current understanding is that you can not have nested rows in an HTML table. For example,
<table>
<tr>
<td>header one</td>
<td>header two</td>
</tr>
<tr>
<td>One</td>
<td>
<!-- nested row -->
<tr>
<td>nested one</td>
<td>nested two</td>
</tr>
</td>
</tr>
</table>
Would expect to create:
This is a very simple exaple. The table that I need to generate has several more nested rows.
I know that there is the table attribute rowspan to set rows. However, I'm wondering if there are any open-source JavaScript libraries or alternative methods for creating nested table rows, without having to use the rowspan attribute.
