Get all following siblings of each element in the set of matched elements, optionally filtered by a selector.Lets say we had a list of items, and we wanted to highlight every vegetable Using nextAll would look like this:
JS Bin demo
Optionally a selector can be passed into nextAll to further filter the results. Here we'll only select the even vegetables that are after our original selector:
JS Bin demo