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
discuss@jquery.com
http://jquery.com/discuss/



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

Reply via email to