JS Selecione o elemento dentro da div

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