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,438
  • 68
  • 55
  • 126
David
  • 981
  • 5
  • 11
  • 27

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
  • 311,322
  • 76
  • 447
  • 566