html - Javascript Text_Node via GetElementsByClassName -
html - Javascript Text_Node via GetElementsByClassName -
basically trying function working classes or ids, right works ids:
function textnodesunder(node){ var = []; (node=node.firstchild;node;node=node.nextsibling){ if (node.nodetype==3) all.push(node); else = all.concat(textnodesunder(node)); } homecoming all; }
i want homecoming array of text nodes within of given element whether specify element class or id, (or info attribute cool too!)
javascript html textnode
Comments
Post a Comment