I'm not sure I understand what you're trying to get at. If you have an element (childObj), it has only one parent, $(childObj).parent(). Perhaps you want to provide some more context if I'm not getting it?
- Richard On Thu, Feb 21, 2008 at 3:48 PM, AsymF <[EMAIL PROTECTED]> wrote: > > How would I select the parent that ONLY has that child? > > For instance, the following selects too many parents: > $($(childObj).parent().get(0).tagName + ':has(#' + childObj.id + ')') > > On Feb 21, 2:25 pm, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > > See > > > > http://docs.jquery.com/Traversing/parent#expr > > > > http://docs.jquery.com/Traversing/parents#expr > > > > - Richard > > > > On Thu, Feb 21, 2008 at 12:33 PM, AsymF <[EMAIL PROTECTED]> > wrote: > > > > > How would I select the ancestor or parent of an element? >