JS Seleccionar elemento dentro de Div

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