by class get child element javascript code example
Example 1: get child element by class javascript
var element = document.querySelector('#Element');
var elementChildren = element.querySelectorAll('.Element-child');
Example 2: javascript get child element by class
// get child element of #test with class my-class
var testContainer = document.querySelector('#test');
var childNodeByClass = testContainer.querySelector('.my-class');