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