/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
document.observe('dom:loaded', function(){ $$('table.stripe tr:nth-child(odd)').invoke("addClassName", "odd"); });
document.observe('dom:loaded', function(){ $$('table.stripe tr:nth-child(odd)').invoke("addClassName", "odd"); });