jQuery Filtering
first, last, eq, filter.
jQuery Filtering
You can filter the search for elements based on their position in a group of elements.
The most basic filtering methods are first(), last() and eq(), which allow you to select a specific element based on its position in a group of elements.
Other filtering methods, like filter() and not() allow you to select elements that match, or do not match, a certain criteria.