Use this:
$('tr td:not(:last-child)').css('background-color', 'red');
It’s saying each <td>
that’s not the last in that particular <tr>
Use this:
$('tr td:not(:last-child)').css('background-color', 'red');
It’s saying each <td>
that’s not the last in that particular <tr>