Element.childNodes
Get the immediate descendants of an element, including text fragments and other non-element nodes.
var elem = document.querySelector('#some-elem');
var descendants = elem.childNodes;
Works back to at least IE6.
Get the immediate descendants of an element, including text fragments and other non-element nodes.
var elem = document.querySelector('#some-elem');
var descendants = elem.childNodes;
Works back to at least IE6.