JS Select Element внутри Div

var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
Smoggy Snake