Gets the next sibling of the first selected element, optionally filtered by a selector.
$('.apple').next().hasClass('orange');//=> true
The next nodes.
https://api.jquery.com/next/
Optional
If specified filter for sibling.
Gets the next sibling of the first selected element, optionally filtered by a selector.
Example
Returns
The next nodes.
See
https://api.jquery.com/next/