我看过类似的例子,但不知道如何让我的代码中使用“not(this)
”。
基本上我需要做的是:
目标儿童元素,但在点击(this
)一个目标儿童元素,但不是被点击的元素
这里的不是那些是我已经尝试:
jQuery(document).ready(function(){
jQuery("li").click(function(){
jQuery(this).children('.step').slideToggle("slow");
jQuery not(this).children('.step').slideUp("slow"); // any advice?...
});
});
您的代码是没有意义的。你想做什么? – SLaks 2013-02-27 17:09:38
你想做什么?你的问题是什么? – 2013-02-27 17:09:38
HTML代码会清除很多情况 – 2013-02-27 17:16:04