.next()

Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

.prevAll()

Get all preceding siblings of each element in the set of matched elements, optionally filtered by a selector, in the reverse document order.