Содержание:
last selector
Описание: Selects the last matched element.
Добавлен в версии: 1.0jQuery( ":last" )
Note that :last
selects a single element by filtering the current jQuery collection and matching the last element within it.
Дополнительные замечания:
-
Because
:last
is a jQuery extension and not part of the CSS specification, queries using:last
cannot take advantage of the performance boost provided by the native DOMquerySelectorAll()
method. To achieve the best performance when using:last
to select elements, first select the elements using a pure CSS selector, then use.filter(":last")
.