Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

children javascript

var child_element = document.querySelector("#id").children[0];
//Where # defines id and '.' a class. And 0 argument the first child element
 
PREVIOUS NEXT
Tagged: #children #javascript
ADD COMMENT
Topic
Name
3+6 =