jQuery Zebra Stripe a Table


/ Published in: jQuery



Copy this code and paste it in your HTML
  1. $("tr:odd").addClass("odd");
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8. Then use some CSS:
  9.  
  10. .odd {
  11. background: #ccc;
  12. }

URL: http://css-tricks.com/snippets/jquery/jquery-zebra-stripe-a-table/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.