Pure CSS
This can be done using CSS using :not()and +:
tr :nth-child(3),
tr :nth-child(3):not([colspan]) + :nth-child(4) {
display: none;
}
JSFiddle demo .
, 3- , , 3- , colspan.
C, 3 4.
Update
BoltClock , CSS :nth-child(n), tr. td th, (>):
tr > :nth-child(3),
tr > :nth-child(3):not([colspan]) + :nth-child(4) {
display: none;
}
, td th .
JQuery
jQuery tr, , , th, colspan, . hideColumn(), n , , :
$(function() {
function hideColumn(n) {
var headerColSpan = 1;
$('tr').each(function(i) {
var nth = $(this).children()[n-1],
colspan = $(nth).attr('colspan');
if (i === 0)
headerColspan = colspan || 1;
if (colspan === headerColspan)
$(nth).hide();
else
for (i=0; i < headerColspan; i++) {
$($(this).children()[n-1+i]).hide();
}
});
}
hideColumn(3);
});
JSFiddle.