1

I need to toggle visibility on certain rows in a table.

I know I should probably redo the table as list items, but is possible to do something like this:

<rowgroup data-id='1'>
    <row>...</row>
    <row>...</row>
    <row>...</row>
</rowgroup>

<rowgroup data-id='2'>
    <row>...</row>
    <row>...</row>
    <row>...</row>
</rowgroup>
Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
David
  • 1,051
  • 5
  • 14
  • 28

1 Answers1

4

Absolutely:

<tbody>
   <tr>...</tr>
   ...
</tbody>
<tbody>
    <tr>...</tr>
    ...
</tbody>

A table may have multiple <tbody> elements, but it may only have one <thead> and one <tfoot>.

Niet the Dark Absol
  • 320,036
  • 81
  • 464
  • 592