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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -