Company - GeeksforGeeks
Name - ABC
Email - abc@geeksforgeeks.org
Last Updated : 11 Jul, 2025
The **jQuery ****:nth-last-of-type() Selector** is used to select all child of a parent with the same element name, counting from the last to first. It uses 1-indexed counting.
**Syntax:
element:nth-last-of-type(n|even|odd|formula)
**Parameters:
**Example 1: This example use :nth-last-of-type() selector to select odd element from the last.
HTML `
jQuery | :nth-last-of-type() Selector Computer Science Subjects`
**Output:
**Example 2: This example use :nth-last-of-type() selector to select last element.
HTML `
jQuery | :nth-last-of-type() SelectorCompany - GeeksforGeeks
Name - ABC
Email - abc@geeksforgeeks.org
Company - GFG
Name - XYZ
Email - xyz@gfg.org
Company - G4G
Name - Geeks
Email - geeks@g4g.org
`
**Output:
