NextFiltered gets the immediately following sibling of each element in the Selection filtered by a selector. It returns a new Selection object containing the matched elements.
(selector string)
| 298 | // Selection filtered by a selector. It returns a new Selection object |
| 299 | // containing the matched elements. |
| 300 | func (s *Selection) NextFiltered(selector string) *Selection { |
| 301 | return filterAndPush(s, getSiblingNodes(s.Nodes, siblingNext, nil, nil), compileMatcher(selector)) |
| 302 | } |
| 303 | |
| 304 | // NextMatcher gets the immediately following sibling of each element in the |
| 305 | // Selection filtered by a matcher. It returns a new Selection object |