First and Last Elements in jQuery — a practical guide to jQuery first last eq with clear examples you can reuse in real projects.
jQuery Tutorial Series (51/101). Prefer one article? Read the complete jQuery tutorial.
Short description
eq() is zero-based like arrays.
first last eq
$('li').first();
$('li').last();
$('li').eq(2);