jQuery :nth-last-of-type() Selector
Learn all about the jQuery function :nth-last-of-type() Selector.
Because jQuery’s implementation of
:nth- selectors is strictly derived from the CSS specification, the value of
n is "1-indexed", meaning that the counting starts at 1. For other selector expressions such as
<ul> containing three
$('li:nth-last-of-type(1)') selects the third, last,
Further discussion of this usage can be found in the W3C CSS specification.