"Uppermost" in the sense that between them and the all-embracing
div.#container there's nothing but div.wrappers -- no other divs with
span.bullet children in the ancestry. Wizzud's expression performs
exactly the right selection.
Thanks for your input, though. (I'd also forgotten about the
usefu
I'm not sure what you mean by "uppermost," but you can select the
wrapper div closest to the span with $
('span.bullet').parents('div.wrapper:first') or furthest out from the
span with $('span.bullet').parents('div.wrapper:last')
--Karl
_
Karl Swedberg
www.englishrules.com
That's the ticket -- works like a charm! I knew jQuery could do it.
Thanks, Wizzud. (Wizzud by name, Wizzud by nature)
Ed
On May 22, 8:11 pm, Wizzud <[EMAIL PROTECTED]> wrote:
> $('span.bullet').parent().filter(function(){
> return !$(this).parents('div:has(>span.bullet)').length;
> });
>
$('span.bullet').parent().filter(function(){
return !$(this).parents('div:has(>span.bullet)').length;
});
On May 22, 9:54 pm, EdMartin <[EMAIL PROTECTED]> wrote:
> I have a setup like this
>
>
>
>
>Bullet
>
>
>
>
>
>
> where there is an unknown number of wrapping "w
4 matches
Mail list logo