How can I create an array out of something like $("li").text()
<p>Suppose I want to get all text of each <code>li</code> and save it into an array, how might I do that. </p>

<p>For example, something like ... </p>

<pre><code>&lt;ul&gt;
    &lt;li&gt;1&lt;/li&gt;
    &lt;li&gt;2&lt;/li&gt;
    &lt;li&gt;3&lt;/li&gt;
    &lt;li&gt;4&lt;/li&gt;
    &lt;li&gt;5&lt;/li&gt;
    &lt;li&gt;6&lt;/li&gt;
    &lt;li&gt;7&lt;/li&gt;
    &lt;li&gt;8&lt;/li&gt;
    &lt;li&gt;9&lt;/li&gt;
    &lt;li&gt;10&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>should give me an array like</p>

<pre><code>["1", "2", "3", ..., "10"]
</code></pre>
