Javascript - Getting element
<pre><code>&lt;div&gt;
   &lt;p&gt;
      &lt;a&gt;&lt;/a&gt;
   &lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>In the code above, for jQuery, we can use <code>$('div p a')</code> to get the <code>&lt;a&gt;</code> element, but in javascript, how can we do get <code>&lt;a&gt;</code> element like <code>$('div p a')</code>?</p>

<p>Updated 2<br />
If I have many <code>&lt;a&gt;</code> element and I don't know the index of the specific <code>&lt;a&gt;</code> element, I just know this specific <code>&lt;a&gt;</code> element is under <code>&lt;div id="some"&gt;</code>, how can I get the <code>&lt;a&gt;</code> element by javascript?</p>
