Hey John, Thanks for the reply, it's much appreciated.
I played around with using $("span:first-child").parent("div"), but it selects the opposite of what I need (divs *with* a span:first-child rather than divs *without* a span:first-child). Is there a way to remove the above from a larger set of matches -- say, find all divs, then remove divs with a span:first-child? I've been trying filter() and not(), but without any luck. Thanks, Luke John Resig wrote: > Hi Luke - > > I was able to get what you wanted, working using: > $("span:first-child").parent("div") > > Right now, in jQuery, doing the XPath /../ is broken (since it's just > a cheap XPath -> CSS conversion). However, it's recommended that you > use methods like .parent() instead. > > All that being said, normally you'd just be able to do: > $("div:not([span:first-child])") > > but that doesn't seem to be working correctly either. Ugh. > > Sorry for the hassle :-/ > > --John _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/