Posted By

klovera on 10/18/11


Tagged


Versions (?)

jQuery Zebra Stripes


 / Published in: jQuery
 

Place inside document ready.

  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  

You need to login to post a comment.