document.getElement(div#menuArea).getElements(a)
I want to get all the a elements from a div with id "menuArea". I think above syntax is wrong. Can anyone point me in the right direction?
Try this
document.getElementById('menuArea').getElementsByTagName('a')
Or for IE8+
document.querySelectorAll('#menuArea a')
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With