alternate color to table row jquery

JavaScript
$("tr:even").css("background-color", "#eeeeee");
$("tr:odd").css("background-color", "#ffffff");
Source

Also in JavaScript: