Thank you John, that helps (but a little slower than my own impl).
On 8/30/06, John Resig <[EMAIL PROTECTED]> wrote:
> > I have elem2 object, and want to access the first seen elem1 (whose
> > name is 3),
>
> $("elem2").parents("elem1:first");
>
> > or last parent who is elem1 (whose name is 1 in my example).
>
> $("elem2").parents("elem1:last");
>
> Let me know if that helps.
>
> --John
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/