title: Get all LI elements in array
body: <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
  <code>navbar['0']</code> would return <code>document.getElementById("navbar-One")</code>?</p>