Run
Online Code Editor
jQuery :nth-of-type() selector
Welcome to the javaTpoint.com
It is an example of using the jQuery :nth-of-type() selector.
Paragraph 1
Paragraph 2
Paragraph 3
This is a div element.
Paragraph 1
Paragraph 2
Paragraph 3
Paragraph 4
Paragraph 5
Paragraph 6
Click the following buttons to see the effect.
p:nth-of-type(1)
p:nth-of-type(odd)
p:nth-of-type(even)
:nth-of-type(3n+3)