Say I have <dl>a hidden one <dd>. By clicking on the button <dt>, you will go to the next character <dd>using the following code:
$(this).nextUntil('dt').toggle();
http://jsfiddle.net/mblase75/FZQj7/
Now I want to automatically hide <dd>, following the other <dt>s, so I am trying to capture siblings with this code:
$(this).nextUntil('dt').toggle()
.siblings().filter('dd').hide();
http://jsfiddle.net/mblase75/FZQj7/1/
But nothing happens, because everyone <dd>that I have already chosen with help .nextUntilis a brother among themselves. As a result, they are all hidden and nothing is displayed.
There must be a compact way to tell jQuery to select all the EXCEPT siblings that I have already selected, but I do not see them. Ideas?