How to get a single element from the selecter by index.

Example 1: Getting the fourth element.


$('div').eq(3);


Second Example: Getting the last one.


$('div').last();

Keyword Reference
.eq()    .last()