get all elements of div in javascript code example
Example 1: js select element inside of div
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
Example 2: get all a tags javascript
document.anchors
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
document.anchors