:last-of-type
selectorThe jQuery :last-of-type
selector is used to select the elements that are the last
among siblings and have no other element with both the same parent and the same elemetn name coming before it in the document tree.
:last-of-type
selector Syntax$(':last-of-type')
:last-of-type
selector ExamplesFollowing is a simple example which would hightlight the last p in each matched div:
Try now