JSFiddle - React, Tailwind, and code Playground
by syen81
HTML
<table border='1'>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>a</td>
<td>b</td>
</tr>
</table>
JavaScript
$('tr:even').css('background-color', 'grey');