Array index/position problem
I'm trying to isolate a single element in an array that is being instantiated by:
-
var $content = $('.content');
I've ensured that the array does in fact have elements (by testing with .length) but when I try to apply a method/function to
-
$content(0)
or
-
$content[0]
I get nothing. The code runs fine if I simply call
-
$content.myFunction;
so its not the function itself. What am I missing?