How can I add a class to the first and second td in each tr?
<div class='location'>
<table>
<tbody>
<tr>
<td>THIS ONE</td>
<td>THIS ONE</td>
<td>else</td>
<td>here</td>
</tr>
<tr>
<td>THIS ONE</td>
<td>THIS ONE</td>
<td>else</td>
<td>here</td>
</tr>
</tbody>
</table>
</div>
For the first td, this does nothing?
$(".location table tbody tr td:first-child").addClass("black");
Can I also use second-child?