strange mannerism of .each()
hey guys
this is not really a problem because i've found another way but i want to understand jquery properly.
i have following code structure:
- <div id="a">
- <div class="b c"></div>
- </div>
when i trigger
- $( "#a > .c").each(function( index ){ //...});
it selects correctly all elements with class='c' under div #a.
If I write instead:
- $( "b + c").each(function( index ){ //...});
it triggers all elements with class='c' under div #a
except the first element.
Do you know why this is like that? Thanks in advance!