Gets all the following siblings of the first selected element, optionally filtered by a selector.
$('.apple').nextAll();//=> [<li class="orange">Orange</li>, <li class="pear">Pear</li>]$('.apple').nextAll('.orange');//=> [<li class="orange">Orange</li>]
The next nodes.
https://api.jquery.com/nextAll/
Optional
If specified filter for siblings.
Gets all the following siblings of the first selected element, optionally filtered by a selector.
Example
Returns
The next nodes.
See
https://api.jquery.com/nextAll/