Mar 20, 2009
Zebra Style on Table with JQuery
This is very cool tips that I found from jquery documentation. Create a table zebra with just one line of code.
You define a css for evenrow and oddrow with different colors.
$('#yourTableID tr:even').attr('class','evenrow');
$('#yourTableID tr:odd').attr('class','oddrow');