let parent = document.getElementById(abc);
alert(abc);
alert(parent.firstChild.value);
alert(parent.secondChild.value);
firstChild의 벨류값은 나오는데
second라는 나오지 않는데 명령어는 없나요?
둘째, 셋째 자식의 벨류값이 필요한데 어떻게 하나요?
firstChild의 벨류값은 나오는데
second라는 나오지 않는데 명령어는 없나요?
둘째, 셋째 자식의 벨류값이 필요한데 어떻게 하나요?
parent.firstChild.nextSibling
parent.children[1], parent.children[2], parent.children[3] ...
children은 자식 Element만 나옴. Element말고 Node로 textNode까지 자식으로 세려면 parent.childNodes