Return to Snippet

Revision: 7504
at July 27, 2008 18:11 by breakerjump


Initial Code
$("tr:nth-child(odd)").addClass("odd");

Initial URL


Initial Description
Uses jQuery to add a class to odd table rows, for purposes of alternating colors, etc.

Initial Title
Alternating Table Rows via jQuery

Initial Tags
jquery

Initial Language
JavaScript