Wysmedia.com

Icon

~ We make IT easy for you ~

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');

Category: Programming, jquery

Tagged:

Leave a Reply