jQuery :nthchild() Selector (original) (raw)

jQuery :nth-child() Selector

Last Updated : 11 Jul, 2025

The jQuery :nth-child() Selector Selects all elements that are the nth-child of their parent elements.

Syntax:

$("Selector:nth-child( index | even |odd |equation )")

Example: In this example, we are using the above-explained nth-child() selector.

HTML `

jQuery :nth-child() Selector

GFG

GFG

GFG

GFG

GFG

GFG

GFG

GFG

GFG

GFG

GFG

`

Output: