Find table head (th) cells (td)
What i'm currently trying to do is find all columns associated with a table header.
For example:
- <table id="thetable">
- <thead>
- <tr><th colspan="2">Column 1 header</th></tr>
- </thead>
- <tbody>
- <tr><td>Column 1 data</td><td>Column 1 data</td></tr>
- </tbody>
- </table>
I would be really happy if when something like this would be possible:
- var jqTh = $( '#thetable thead th:eq(0)' )
- jqTh.getTBodyColumns( ).toggle( ); // Get all cells for first th and hide them
Thanks in advance,
Jos