Get all LI elements in array
<p>How can i make JS select every LI element inside a UL tag and put them into an array?</p>

<pre><code>    &lt;div id="navbar"&gt;
        &lt;ul&gt;
            &lt;li id="navbar-One"&gt;One&lt;/li
            &gt;&lt;li id="navbar-Two"&gt;Two&lt;/li
            &gt;&lt;li id="navbar-Three"&gt;Three&lt;/li
            &gt;&lt;li id="navbar-Four"&gt;Four&lt;/li
            &gt;&lt;li id="navbar-Five"&gt;Five&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
</code></pre>

<p>Can i make it so JS gets each of them into an array eg
navbar['0'] would return document.getElementById("navbar-One")?</p>
