A repository of over 1000 quality jQuery plugins

jQuery :nth-of-type() Selector

Learn all about the jQuery function :nth-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 :eq() or :even jQuery follows JavaScript’s "0-indexed" counting.

Further discussion of this usage can be found in the W3C CSS specification.