get div elemnt in js code example
Example 1: javascript get element by id
var element = document.getElementById("YourElementId");
Example 2: Finding HTML Element by Id
var myElement = document.getElementById("intro");
Example 3: js select element inside of div
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];