alternate table row color. the easy way!

By paragasu

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

Tags: ,

Leave a Reply