I'm no expert, but it seems $('tr td:eq(2)') is like "select the third td
that is a child of tr". Whereas $('tr').find('td:eq(2)') is like "for each
tr, select the third td". It sounds like the second one is what you want.

--Erik

On 1/11/07, Jacky <[EMAIL PROTECTED]> wrote:

Dear all,

If I want to select the 3rd column of the table, (e.g. 3 rows)
$("tr > td:eq(2)") would returns only one <td>.
$("tr").find("td:eq(2)") would returns 3 <td>.

Is that ":eq(2)" is applied to the whole "tr>td" set? Is that correct?

--
Best Regards,
Jacky
網絡暴民 http://jacky.seezone.net
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to