How to get all the li in javascript?
<pre><code>&lt;ul id="tab"&gt;
    &lt;li onclick="clicker()" class="li01"&gt;one test&lt;/li&gt;
    &lt;li onclick="clicker()" class="li02"&gt;two test&lt;/li&gt;
    &lt;li onclick="clicker()" class="li03"&gt;three test&lt;/li&gt;
    &lt;div class="web_clear"&gt;&lt;/div&gt;
&lt;/ul&gt;
&lt;div class="web_index"&gt;
content....
&lt;/div&gt;
</code></pre>

<p>i used <code>document.getElementsByTagName("ul").childNodes;</code> to get all the li. but it doesn't work. </p>
