li元素我有李多張這樣的..如何從李
我要的是在點擊時,李我不想火單擊「.actiontools」類的事件這是所有李
下<li>
<div class="bordered collapse-tree">
<div class="actionTools">
<div class="navItemcustom">
<a href="#" class="actionToolsDropDown"><span class="">
Actions</span></a>
<div class="dropscustom">
<a >Add</a>
<a >edit</a>
</div>
</div>
</div>
<div class="title">
test
</div>
</div>
<ol>
<li id="menuid">
<div class="bordered ">
<div class="actionTools">
<div class="navItemcustom">
<a href="#" class="actionToolsDropDown"><span class="">
Actions</span></a>
<div class="dropscustom">
<a >Add</a>
<a >edit</a>
</div>
</div>
</div>
<div class="title">
new
</div>
</div>
</li>
</ol>
</li>
<script type="text/javascript">
(function (cash) {
$.fn.collapsibleList = function() {
this.find("li").each(function (i, li) {
});
return this;
}
})(jQuery);
$(".collapsibleList").collapsibleList();
</script>
這裏是小提琴:http://jsfiddle.net/napper7/BTcwr/
我想要的東西就像在「.actiontools」類中點擊錨點標籤時我想要li(可摺疊)的默認行爲來停止並激發錨點標記事件 – Rusty