jQuery last () Method

Last Updated Jul 21, 2015, 12:00:06 PM

jQuery last () Method

jQuery last() method selects the lastHTML element in a group of DOM elements. It doesn't take any parameters

Note: ThejQuery last() method can only select a single element from DOM tree.

Below example describes the usage of .last() method in jQuery.

Example HTML
jQuery last() method
Try It Now

Other Advanced jQuery Traversing Methods you might want to learn
jQuery Traversal Reference

jQuery Basic Traversing

jQuery Traversal Filters

jQuery Traversing Methods

Sources and Credits

The content and methods in the tutorial has been referred and updated with jQuery API and The jQuery Foundation

Last Updated Jul 21, 2015, 12:00:06 PM