instance method Element#next
Element#next([expression[, index = 0]]) → Element
Element#next([index = 0]) → Element
-
expression(String) – A CSS selector.
Returns element's first following sibling (or the Nth, if index
is specified) that matches expression. If no expression is
provided, all following siblings are considered. If none matches these
criteria, undefined is returned.
This method can be called either as an instance method or as a generic method. If calling as a generic, pass the instance in as the first argument.