Posted By

shapeshifta on 01/20/10


Tagged

tables prototype zebra


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

shapeshifta
ljayz


Zebra tables with Prototype


 / Published in: JavaScript
 

  1. document.observe('dom:loaded', function(){
  2. $$('table.stripe tr:nth-child(odd)').invoke("addClassName", "odd");
  3. });

Report this snippet  

You need to login to post a comment.