jquery - select the next item of this in each() function
<p>I want to select the next element of this in each() function. check out the code comments</p>

<pre><code>$(function(){
    var selects = $('body').find('span');
    selects.each(function(index,el){
        if(index==0){
            //remove the next span of this, which is span2 
        }

    });
}); 


    &lt;body&gt;
        &lt;div&gt;
            &lt;span&gt;1&lt;/span&gt;
        &lt;/div&gt;
        &lt;span&gt;2&lt;/span&gt;
        &lt;div&gt;
            &lt;span&gt;3&lt;/span&gt;
        &lt;/div&gt;  
    &lt;/body&gt;
</code></pre>
