$(e1).parents(p1).find(e2).hide(); Substitute your actually selectors as necessary.
--Erik On 5/21/07, SamCKayak <[EMAIL PROTECTED]> wrote:
I have an element (call it e1) with an onclick handler nested a variable length from a parent element (call it p1). I need to go up to the parent (p1), which might be 1, 2, or 3 levels up, then down to another element (call it e2). I want to hide element e2 when e1 is clicked. Is there a single-line jQuery syntax which can do this? Sam