Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript get tag child elements

var child_element = document.querySelector("#id").children[0];
//Where # defines id and '.' a class. And 0 argument the first child element
Source by www.javascripttutorial.net #
 
PREVIOUS NEXT
Tagged: #javascript #tag #child #elements
ADD COMMENT
Topic
Name
5+7 =