/ Published in: JavaScript
Uses jQuery to add a class to odd table rows, for purposes of alternating colors, etc.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$("tr:nth-child(odd)").addClass("odd");