dynatree

Set data attribute using JavaScript

╄→尐↘猪︶ㄣ 提交于 2019-11-26 20:25:29
I am using The DynaTree (https://code.google.com/p/dynatree) but I am having some problems and hoping someone can help.. I am displaying the tree on the page like below: <div id="tree"> <ul> <li class="folder">Outputs <ul> <li id="item1" data="icon: 'base.gif', url: 'page1.htm', target: 'AccessPage'">Item 1 Title <li id="item2" data="icon: 'base.gif', url: 'page2.htm', target: 'AccessPage'">Item 2 Title <li id="item3" data="icon: 'base.gif', url: 'page3.htm', target: 'AccessPage'">Item 3 Title <li id="item4" data="icon: 'base.gif', url: 'page4.htm', target: 'AccessPage'">Item 4 Title </ul> <

Set data attribute using JavaScript

我只是一个虾纸丫 提交于 2019-11-26 07:34:43
问题 I am using The DynaTree (https://code.google.com/p/dynatree) but I am having some problems and hoping someone can help.. I am displaying the tree on the page like below: <div id=\"tree\"> <ul> <li class=\"folder\">Outputs <ul> <li id=\"item1\" data=\"icon: \'base.gif\', url: \'page1.htm\', target: \'AccessPage\'\">Item 1 Title <li id=\"item2\" data=\"icon: \'base.gif\', url: \'page2.htm\', target: \'AccessPage\'\">Item 2 Title <li id=\"item3\" data=\"icon: \'base.gif\', url: \'page3.htm\',