Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get child element of parent by class

parent = document.getElementById('parent_id');
child = parent.querySelector('.className');
 
PREVIOUS NEXT
Tagged: #child #element #parent #class
ADD COMMENT
Topic
Name
3+9 =