Следующие селекторы (“prev ~ siblings”)


next siblings selector

Описание: Selects all sibling elements that follow after the "prev" element, have the same parent, and match the filtering "siblings" selector.

  • Добавлен в версии: 1.0jQuery( "prev ~ siblings" )

    prev: Any valid selector.

    siblings: A selector to filter elements that are the following siblings of the first selector.

The notable difference between (prev + next) and (prev ~ siblings) is their respective reach. While the former reaches only to the immediately following sibling element, the latter extends that reach to all following sibling elements.