Collapsible Table

Download    The Collapsible Table module will allow you to create tables within Drupal that are collapsible/expandable.  Tables marked as collapsible will work similarly to Drupal's collapsible Fieldsets.  The table body (<tbody>) will be hidden/shown, so this module requires properly formatted tables.  Table captions and headers will always be displayed.

    The following code is an example of a table that can be collapsed and will use the table header as the displayed portion.

<table class="collapse">
    <thead>
        <tr>
            <th>Header 1</th>
            <th>Header 2</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>Data A1</td>
            <td>Data A2</td>
        </tr>
        <tr>
            <td>Data B1</td>
            <td>Data B2</td>
        </tr>
    </tbody>
</table>
Header 1 Header 2
Data A1 Data A2
Data B1 Data B2

    The following code is an example of a table that starts collapsed and will use the table caption as the displayed portion.

<table class="collapse  collapsed">
    <caption>Collapsed Table</caption>
    <tbody>
        <tr>
            <td>Data A1</td>
            <td>Data A2</td>
        </tr>
        <tr>
            <td>Data B1</td>
            <td>Data B2</td>
        </tr>
    </tbody>
</table>