How do I select the anchor of a link wth pure javascript
<p>So if I have a DOM like this :</p>

<pre><code>&lt;div id="foo"&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;/div&gt;
</code></pre>

<p>I understand to grab the div I would do </p>

<pre><code>   document.getElementById("foo");
</code></pre>

<p>but how could I grab the a ?  I am trying to add a class to the a href.</p>

<p>ME = spoiled by jQuery</p>
