Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get all child elements

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
 
PREVIOUS NEXT
Tagged: #javascript #child #elements
ADD COMMENT
Topic
Name
3+9 =