I'm new to jQuery, and I'm having a little trouble understanding its array notation for objects. Reading the jQuery docs and this article, it seems that you can refer to the nth item in an object returned by a selector by doing something like
$('.foo')[n];
Correct? Should I be able to use jQuery manipulation/effects functions in tandem? Something like (this isn't working for me)
$('.foo')[0].hide();
I've also tried, to no avail:
var arr = $('.foo').get();
arr[0].hide();
Is there something wrong in my syntax? What's the best way to do what I'm trying to do here?
Thanks!