Const
Gets all the following siblings up to but not including the element matched by the selector, optionally filtered by another selector.
Optional
Selector for element to stop at.
If specified filter for siblings.
The next nodes.
$('.apple').nextUntil('.pear');//=> [<li class="orange">Orange</li>] Copy
$('.apple').nextUntil('.pear');//=> [<li class="orange">Orange</li>]
https://api.jquery.com/nextUntil/
Gets all the following siblings up to but not including the element matched by the selector, optionally filtered by another selector.