I used a combination of previous answer to add tr
's with display=none
programatically:
HTML
A |
B |
C |
1 |
2 |
sub C 1 |
sub C 2 |
3 |
4 |
5 |
6 |
7 |
8 |
CSS
table tr:nth-child(2n) {
background-color: #F8ECE0;
}
JQUERY
$( "
" ).insertAfter('tbody tr:has(td[rowspan])');
See the JSfiddle.