> Yeah, but if I have a table embedded within a table (ugh, I know) then I
> find both the <tr>s.  I tried parents('tr').get(0), but that's not right
> either.

The issue is that that the <tr>s are returned in the order in which
they're in the document. So the highest <tr> in the document is
returned first. So the best way to do this is by doing:
$(...).parents("tr:last")

Which will give you the last <tr> found (but the one closest to your
starting element).

--John

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to