SO - 20962813

by Arun P Johny

HTML

<table class="table">
    <caption>
        <div class="video-header">Header</div>
    </caption>
    <tbody>
        <tr class="video-row">
            <td class="field-title">Content</td>
        </tr>
        <tr class="video-row">
            <td class="views-field views-field-title">More Content</td>
        </tr>
    </tbody>
</table>

JavaScript

jQuery(function () {
    $('table > caption').click(function () {
        $(this).next().toggle();
    })
})