/ Published in: JavaScript
StripTables Script. Need jQuery Framework : http://jquery.com/
Expand |
Embed | Plain Text
function stripTables(){ // select all table elements, select all tr elements and apply the css { background : color } $('table').find("tr:odd").css({ background : "#f6f6f6" }); }
Comments
Subscribe to comments
You need to login to post a comment.

you can use also:
$('table').not('tr:even').css('background', '#f6f6f6');