How to return array of jQuery object with selector
<p>I am trying to retrieve an array of jquery object from selector, so I would not have to re-query them again for modification later. </p>

<p>But, while I testing with the code, I find that the jquery selector returns array as html element if it does not query specific element.</p>

<pre><code>//HTML
&lt;div id='nav'&gt;
    &lt;div class='menu'&gt;menu 1&lt;/div&gt;
    &lt;div class='menu'&gt;menu 2&lt;/div&gt;
    &lt;div class='menu'&gt;menu 3&lt;/div&gt;
    &lt;div class='menu'&gt;menu 4&lt;/div&gt;
    &lt;div class='menu'&gt;menu 5&lt;/div&gt;
&lt;/div&gt;​


//JS

//this works
$('#nav .menu:eq(0)').html('haha');

//this does not    
$('#nav .menu').get(0).html('halo w');​ 

-&gt; Uncaught TypeError: Object #&lt;HTMLDivElement&gt; has no method 'html'
</code></pre>

<p>My question is why does it return html element and not jquery object.How can I retrieve an array of jquery objects from selector. </p>

<p>Here's the JSFiddle example.</p>

<p><a href="http://jsfiddle.net/mochatony/K5fJu/7/" rel="nofollow">http://jsfiddle.net/mochatony/K5fJu/7/</a></p>
