This CSS code
tbody tr:nth-child(even) {
background:#eee;
}
or this JS+CSS code
$("tr:odd").addClass("odd");
.odd {
background: #ccc;
}
produce this zebra table effect:
But how does one achieve the following zebra table effect?
Some sample code here: https://jsfiddle.net/61bup2Lr/