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?