I am trying to use the getElementsByTagName ("a") method to get all the elements under a specific tag.
However, I do not want every anchor tag. How would I narrow it, so I select all anchor tags under the ul tag for the name "someListClass"?
<ul class="someListClass"> <li><a href... /></li>... </ul>
I know that in jQuery you can just select $ (". SomeListClass a").
How can I do this without using jQuery?
source
share