1var element = document.querySelector('#Element');
2var elementChildren = element.querySelectorAll('.Element-child');
1// get child element of #test with class my-class
2var testContainer = document.querySelector('#test');
3var childNodeByClass = testContainer.querySelector('.my-class');
4
1var doc = document.getElementById("test");
2var notes = null;
3for (var i = 0; i < doc.childNodes.length; i++) {
4 if (doc.childNodes[i].className == "4") {
5 notes = doc.childNodes[i];
6 break;
7 }
8}