jQuery :nth child() Selector
jQuery :nth-child() Selector
The :nth-child(n) selector is used to select all elements that are the nth-child of their parent regardless of their type.
Its syntax is:- :nth-child(n|even|odd|formula);
|n||The index of each child to match.|
|even||Selects each even child element|
|odd||Selects each odd child element|
|formula||Specifies which child element(s) to be selected with a formula (an + b).|