jQuery获取下一个元素及其所有子元素

Tim*_*yce 6 jquery

我怎样才能得到下一个div元素然后是它的所有子元素?

<div class="1"></div>
<div class="2">
    <div class="child1"></div>
    <div class="child2"></div>
</div>
<div class="3">
    <div class="child1"></div>
</div>
Run Code Online (Sandbox Code Playgroud)

所以,如果$(this)目前是1级,我怎么才能到达2级及其所有孩子.我不能通过它的类名来引用它,因为我不知道那是什么.

我基本上希望将这两个语句合并为1.

$(this).next('div').animate({height : 'toggle'});
$(this).next('div *').animate({height : 'toggle'});
Run Code Online (Sandbox Code Playgroud)

Mat*_*all 12

$(this).next('div').children().andSelf().animate({height : 'toggle'});
Run Code Online (Sandbox Code Playgroud)