jQuery Hierarchy Selectors

To select elements based on their position in the document tree, use the Hierarchy Selectors.

The Hierarchy Selectors work by examining the position of target elements relative to other elements:

This is paragraph 1

This is paragraph 2

This is paragraph 3

This is paragraph 4

This is paragraph 5