There are several ways to access queried DOM elements. You get either a DOM element using get() or a jQuery object using eq(). This can be confusing while you try to call jQuery API functions on DOM elements.
The example shows how to get the first array element on three different ways.
Instead of using the filter method eq() you can combine the filter with the selector like this
var elem = $("li:eq(0)");
var elem = $("li:first");
To turn a DOM element into a jQuery object you can wrap it with jQuery(element) or $(element) if you’re not in conflict mode. But keep in mind that this creates a new object which
wastes consumes memory so pay attention if you do this in a loop.