jQuery Zebra Stripes


/ Published in: jQuery
Save to your folder(s)

Place inside document ready.


Copy this code and paste it in your HTML
  1. // make zebra stripes
  2. var zebraodd = "#364146";
  3. var zebraeven = "#102227";
  4. $("table.zebra tr:odd, ul.zebra li:odd").css("background-color", zebraodd);
  5. $("table.zebra tr:even, ul.zebra li:even").css("background-color", zebraeven);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.