I am pretty new to jQuery and CSS and hope someone can help me with the following:
I have a standard HTML table with a colgroup, thead, tbody and several tr's and td's in the body and would like to use a CSS class to hide certain columns.
My CSS class looks like this:
.hideAll
{
display:none;
}
What is the best / correct way to apply this class ? To the col's in the colgroup, to the th's in the thead, to the tr's or td's in the tbody or to several of them at the same time ?
My table looks something like this:
<table>
<colgroup>
<col />
<col />
<col />
</colgroup>
<thead>
<tr><th></th><th></th><th></th></tr>
</thead>
<tbody>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
<tr><td></td><td></td><td></td></tr>
</tbody>
</table>
Many thanks for any help with this, Tim.