<div class="tree-item tree-selected" style="display: block;">
<i class="icon-ok"></i>
<div id="name" class="tree-item-name">aaaaaa</div>
</div>
请问用js或jquery怎么能取到aaaaa这个值啊?
谢谢了
------解决方案--------------------
jQuery:
$(".tree-item-name").html();
------解决方案--------------------
$(".icon-ok").next().html()