jQuery “nextAll()” method is used to get all the next siblings of the matched elements.
Syntax : jQuery nextAll() method
$(selector).nextAll(selector-element);
selector-element : Is optional, you can add selector-element to get next element.
$(selector).nextAll(selector-element);
selector-element : Is optional, you can add selector-element to get next element.