Other methods for working with neighbors in jQuery
In addition, there are other methods for working with neighbors.
prevAllnextAllprevUntilnextUntilЗадание 1
Find all elements that come immediately before an element with class test.
Задание 2
Find all elements that immediately follow an element with class test.
Задание 3
Find all elements that lie between an element with class test and an element with class www through prevUntil.
Задание 4
Find all elements that lie between an element with class www and an element with class test through nextUntil.