$(document).ready(function(){ $("table.datatbl tr:odd").css("background-color", "#eaeaea"); });