jQuery Child Selectors Reference

Last Updated Jul 21, 2015, 12:00:06 PM

jQuery Child Selectors Reference

The following table lists all the jQuery Child Selectors Reference

Selector Name Description Example
first-child first-child selector is used to select all the HTMLelements which are the first child of their parent Try It
last-child last-child selector is used to select all the last-child elements of its parent. Try It
first-of-type :first-of-type selector used to select the first of type element if there are more than one element in the same parent Try It
last-of-type :last-of-type selector matches elements that have no other element with both the same parent and the same element name coming before it in the document tree. Try It
nth-child Matches all elements that are the nth-child of their parent or that are the parent's even or odd children. Try It

Other Advanced jQuery Selectors you might want to learn

jQuery Complete Selectors Reference

jQuery Selectors

jQuery Basic Selectors

jQuery Child Selectors

jQuery Content Filter Selectors

Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM