/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript"> $( function() { $( ".informationTable tr:nth-child(even)" ).addClass( "rowDark" ); $( ".informationTable tr:nth-child(odd)" ).addClass( "rowLight" ); $( ".informationTable th" ).addClass( "rowHeader" ); }); </script>