I\'m new to jQuery, and I\'m wondering what the difference is between jQuery\'s get() and eq() functions. I may misunderstand what the get()
get()
eq()
get(0)(docs) returns the first DOM element in the set.
eq(0)(docs) returns the first DOM element in the set, wrapped in a jQuery object.
That's why .fadeIn("slow"); doesn't work when you do .get(0). A DOM element doesn't have a fadeIn() method, but a jQuery object does.
.fadeIn("slow");
.get(0)
fadeIn()