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>
2

1 Answer 1

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>.

1
  • That's why I love SO. Thanks !
    – David
    Commented Jul 24, 2013 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.