jQuery last () method
Definition and Usage
last () method returns the last element of the selected element.
Tip: To return to the first element, use the first () method.
grammar
$(selector).last()
More examples
Select <p> The last element in the set <span> element
How to select the <p> element in the set of the last <span> element.