:last-child selectorThe jQuery :last-child selector is used to select the elements that are the last child of their parent.
:last-child selector Syntax$(':last-child')
:last and :last-child:last selector matches only a single element;:last-child selector matches more than one element: one for each parent.:last-child selector ExamplesFollowing is a simple example which would hightlight the last p in each matched div:
