What jQuery selector would allow me to select the last <td>
in a <tr>
that has more than 1 <td>
? NOTE: I am trying to find an answer which will allow me to use a single selector or a selector followed by a .filter()
rather than using .each()
<table>
<tr>
<td colspan="2">First Cell</td>
<td>Second Cell</td>
</tr>
<tr>
<td colspan="2">Only Cell</td>
</tr>
<tr>
<td>First Cell</td>
<td>Second Cell</td>
<td>Third Cell</td>
</tr>
</table>
At first, I thought td:last-child might work, but it doesn't.