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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -