var children = document.getElementById('myElement').children; for(var i=0; i<children.length; i++){ console.log(children[i]); }