Jquery

jQuery Intro

jQuery Intro Quiz

jQuery Intro Exercise

jQuery Basic

jQuery Basic Quiz

jQuery Basic Exercise

jQuery Advance

jQuery Advance Quiz

jQuery Advance Exercise

jQuery Selectors

jQuery Effects

jQuery Events

jQuery Methods and Properties

jQuery Traversing

jQuery CSS and HTML Methods

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.

 

Syntax:-

 

Its syntax is:- :nth-child(n|even|odd|formula);

 

Further Explanation:-

 

Parameter Description
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).

Code Explanation

All Tutorials related to jQuery Selectors

All Sections related to Jquery