Reduce the set of matched elements to the one at the specified index. Use .eq(-i) to count backwards from the last selected element.
.eq(-i)
Index of the element to select.
The element at the ith position.
i
$('li').eq(0).text();//=> Apple$('li').eq(-1).text();//=> Pear Copy
$('li').eq(0).text();//=> Apple$('li').eq(-1).text();//=> Pear
https://api.jquery.com/eq/
Reduce the set of matched elements to the one at the specified index. Use
.eq(-i)to count backwards from the last selected element.