it is very simple using jQuery.


$(document).ready(function() {

$('table.zebra tr:odd').addClass('odd');
$('table.zebra tr:even').addClass('even');

});

of course you have to create two css class with the name even and odd.


jquery alternate table rows

tree color alternating pattern