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()
function does, but I thought it odd that I couldn't call a function on the returned on the returned element in the same line.
//Doesn't work
I.e. $("h2").get(0).fadeIn("slow");
//Works
$("h2").eq(0).fadeIn("slow");