我需要在此树中找到一个节点(其中一个< li>标记),该节点具有特定文本并对其进行更新.如何在此处输入代码使用jquery执行此操作?
例:
<ul> <li> root 1</li> <li> root 2</li> <li> root 3 <ul> <li> leaf1</li> <li> leaf2</li> <li> find me</li> </ul> </li> </ul>
提前致谢
I need to find a node in this tree (one of the tags) that has a specific text and update it
使用:包含Docs过滤器选择器:
$('#treeID li:contains("your text")').......