Skip to main content
Home / Code Snippets / jQuery Code Snippets / jQuery Zebra Stripe a Table

jQuery Zebra Stripe a Table

$("tr:odd").addClass("odd");

Then use some CSS:

.odd {
   background: #ccc;
}