我怎么能使用相邻的选择器“+”与$(this)。
我需要用//这不工作的注释行帮助:
$(".ExpandCollapse").click(function() {
if ($(this).nextUntil('.Collapsable').is(':visible'))
{
//this doesnt work
$(this + ".Collapsable").hide();
}
else
{
//this doesnt work
$(this + ".Collapsable").show();
}
});
能给我一个忙吗?
非常感谢。
最好的问候。
何塞