get elements inside div javascript code example
Example 1: js select div
// Select div with class "theDiv"
document.queryselector('.theDiv');
// Select div with ID "theDiv"
document.queryselector('#theDiv');
Example 2: js select element inside of div
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];