:nth-of-type() selector

:nth-of-type() Selector

nth-of-type selector

Description: Selects all elements that are the nth child of their parent in relation to siblings with the same element name.

  • version added: 1.9jQuery( ":nth-of-type(index/even/odd/equation)" )

    index: The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-of-type(even), :nth-of-type(4n) )

Because jQuery's implementation of