javascript - jstree node name -


this data format nodes:

{ data: "new structure", attr: {id:"1", class:"structurenode", rel:"root"} } 

i have reference node in question, , can attributes

nodereference.attr('attributename') 

however, can't access node name, stored in "data". there way access while having node reference (other searching through dom find text in <a> field, find cumbersome)?

i've considered storing name in attr array well, don't have redundancy.

thanks :-)

i found solution in documentation. apparently, need .get_text(nodereference) :-)


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -