Edit in JSFiddle

<table border="1">
<tr>
<td>Odd Row</td>
<td>Odd Row</td>
</tr>
<tr>
<td>Even Row</td>
<td>Even Row</td>
</tr>
</table>
$("tr:odd" ).css("background-color","#fbcff5" );
$("tr:even").css("background-color","#bbbbff");