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:
> ########################
> ..................
> &lt;span&gt;foo&lt;/span&gt;
> &lt;span&gt;foo&lt;/span&gt;
> &lt;div&gt;first&lt;/div&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;first&lt;/span&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;div&gt;second&lt;/div&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;&lt;/span&gt;
> &lt;span&gt;second&lt;/span&gt;
> &lt;span&gt;foo&lt;/span&gt;
> &lt;span&gt;foo&lt;/span&gt;
> &lt;span&gt;foo&lt;/span&gt;
> &lt;span&gt;foo&lt;/span&gt;
> ...................................
> #######################
>
> 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.
>
>

Reply via email to