:nth-last-of-type()
selectorThe jQuery :nth-last-of-type()
selector is used to select all elements that are the nth-child of their parent in relation to siblings with the same elements name,counting from the last element to the first.
:nth-last-of-type()
selector Syntax$(':nth-last-of-type(index/even/odd/equation)')
:nth-last-of-type()
selector ExamplesFollowing is a simple example which would hightlight the second to last p in each matched div: