title: applying methods to single elements in an array - jquery/javascript
body: <p>I've created an array of elements called <code>$images</code> (all the elements in the <code>hidden</code> class.)  Then when I try to apply <em>any</em> method to just <em>one</em> element in the array, I get a <code>$images[1].attr is not a function</code> error.  However, when I try <code>$images.attr('id')</code> for example without specifying the index of the array, it works but gives me the result for the first element in the array only.</p>
  
  <pre><code>$images = $(".hidden");
  alert($images[1].attr('id'));
  </code></pre>
  
  <p>What's going here and how can I apply methods to single elements in an array?  By the way, I'm certain there are at least two elements in the array as I tested it for this.</p>