/ Published in: JavaScript

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript" src="../css-js/jquery-1.4.2.min.js"></script> <script type="text/javascript"> $( function() { $( ".informationTable tr:nth-child(even)" ).addClass( "rowDark" ); $( ".informationTable tr:nth-child(odd)" ).addClass( "rowLight" ); $( ".informationTable th" ).addClass( "rowHeader" ); }); </script> <!-- Reference: http://docs.jquery.com/Tutorials:Zebra_Striping_Made_Easy -->
Comments
