var child_element = document.querySelector("#id").children[0]; //Where # defines id and '.' a class. And 0 argument the first child element var child_element = document.querySelector("#id").children //get all children