HTML:
<table class="list qy">
<tr>
<td>cell1</td>
<td class="q">cell2</td>
<td>cell3</td>
<td class="y">cell4</td>
</tr>
</table>
CSS:
table.qy td.q, table.qy td.y { display: none; }
JS:
function toggleQY(b) {
$("table.list").toggleClass("qy")
}
It work quickly than running with JS for all TD ($("table.list td.q,table.list td.y")...) But it don`t working in IE (8,9)...
As I understand class added for table, but table not refreshing...
I don`t have ideas (((
P.S. sorry for my English
visibility: hidden- unless you need it to disappear from the document flowdisplay: nonetakes the table cell out of the document flow but then this creates a malformed table because you are missing a cell! You would either have to expand the other cells to fill that space withcolspan=2... perhaps it would be best to wrap the cell in another div or just usevisibility: hidden. Is this tabular data BTW?