/ Published in: JavaScript
StripTables Script.
Need jQuery Framework : http://jquery.com/
Need jQuery Framework : http://jquery.com/
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function stripTables(){ // select all table elements, select all tr elements and apply the css { background : color } $('table').find("tr:odd").css({ background : "#f6f6f6" }); }