title: How to jquery to get elements and store in array for later use?
body: <p>I'm trying to gather a specific set of <code>&lt;li&gt;</code> elements that I'd like to use later in a loop. However, I don't seem to have the right syntax down: the debug console tells me that my object is undefined. Can someone tell me what I'm doing wrong? </p>
  
  <pre><code>var all_help_triggers = [];
  $(".canned-triggers &gt; li").each(function() { all_help_triggers.push($(this)) });
  all_help_triggers[0].click(function(){alert('hi!');})
  </code></pre>