Your code didn't come through very well, but maybe you want next()?
http://docs.jquery.com/Traversing/next#expr
--Erik
On 9/2/07, ronnie98 <[EMAIL PROTECTED]> wrote:
>
>
>
> Hi all,
> i have troubles with subsequent siblings selection.
> Provided the following code:
> ########################
> ..................
> <span>foo</span>
> <span>foo</span>
> <div>first</div>
> <span></span>
> <span></span>
> <span>first</span>
> <span></span>
> <span></span>
> <div>second</div>
> <span></span>
> <span></span>
> <span></span>
> <span>second</span>
> <span>foo</span>
> <span>foo</span>
> <span>foo</span>
> <span>foo</span>
> ...................................
> #######################
>
> my goal is, for each "div", selecting the corresponding subsequent "span"
> so
> that
> first/first and second/second
> So far i've come with this (not so much)
>
> ######################
>
> $("div").each(function(i){
> this......?????
> });
>
> #####################
>
> thanks in advance,ronnie
> --
> View this message in context:
> http://www.nabble.com/Selecting-subsequent-siblings-tf4367784s15494.html#a12449291
> Sent from the JQuery mailing list archive at Nabble.com.
>
>