.last()

.last()

.last()Returns: jQuery

Description: Reduce the set of matched elements to the final one in the set.

  • version added: 1.4.last()

    • This method does not accept any arguments.

Given a jQuery object that represents a set of DOM elements, the .last() method constructs a new jQuery object from the last element in that set.

Consider a page with a simple lis