In your last comment on the original question, do I see that the ms-alternating class already exists in the markup for you ??
If so, you do not need any jQuery or fancy CSS3 rules for this. You can do this using regular CSS.
Just add this to your CSS:
tr td { background-color:green; } tr.ms-viewheader td { background-color:transparent; } tr.ms-alternating td { background-color:yellow; }
Note that this will color all the tables on the page. You probably want to target only one table. Therefore, you need a few more special selectors. Does the table for which you want to colorize have an identifier or class that you could target?
Good luck
source share