$('td:last-child')

On Oct 12, 9:45 am, MorningZ <morni...@gmail.com> wrote:
> with this html:
>
> <table>
>     <tbody>
>         <tr>
>              <td>...</td><td>...</td><td>...</td>
>         </tr>
>         <tr>
>              <td>...</td><td>...</td><td>...</td>
>         </tr>
>         <tr>
>              <td>...</td><td>...</td><td>...</td>
>         </tr>
>     </tbody>
> </table>
>
> what would the selector be to get all the *last* <td>'s in each row ?
>
> I'm looping through the rows, and then getting the last <td> in each
> row and doing what I need to do, but I recall an earlier topic where
> it was a single selector to get all those last cells in one shot...
> damned if i can find it though...  i do believe ":last-child" was
> involved
>
> Thanks in advance

Reply via email to