:nth-last-of-type() selector

:nth-last-of-type() Selector

nth-last-of-type selector

Description: Selects all the elements that are the nth-child of their parent in relation to siblings with the same element name, counting from the last element to the first.

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

    index: The index of each child to match, starting with the last one (1), the string even or odd, or an equation ( eg. :nth-last-of-type(even), :nth-last-of-type(4n) )登录查看完整内容