JS Wybierz element wewnątrz div
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
Smoggy Snake
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];