Answers for "children array javascript"

0

children array javascript

var foo = document.getElementById('foo');
for (var i = 0; i < foo.children.length; i++) {
    console.log(foo.children[i].tagName);
}
Posted by: Guest on February-02-2021

Code answers related to "children array javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language