bump
On 05/10/06, Luke Lutman <[EMAIL PROTECTED]> wrote:
> 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
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
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, nor
Hi all,
I'm having trouble removing a from a set of matches if the div has a
particular
first-child element.
##Here's what I've got:
123
abcxyz
defghi
I have a $() object matching all divs (i.e. $('div')), but I only want to
process which
don't have a span as their first child element. I