It would probably be $("#someElement").parents("tr:first").

-- Yehuda Katz

On 1/15/07, Matt Stith <[EMAIL PROTECTED]> wrote:

easy, try something like this:

$("#someElement").parent("tr").doSomething();

That would select the first 'tr' element that is above #someElement.
On 1/15/07, Chris Domigan <[EMAIL PROTECTED]> wrote:

> Hi there,
>
> How would I select the first ancestor of a certain type? Eg if I want to
> select the first div that is found while searching up the DOM from an
> element.
>
> Cheers,
>
> Chris
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>
>
>

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





--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to