jQuery Zebra Stripe a Table

Avatar of Chris Coyier
Chris Coyier on (Updated on )
$("tr:odd").addClass("odd");

Then use some CSS:

.odd {
   background: #ccc;
}