多次向上遍历
Traverse Up multiple times
目前我使用
$(this).parent().parent().parent().parent().$(".collapse");
我尝试使用 .closest(".playerul") 但没有找到任何东西。
在父级中传递选择器也没有成功。
我必须这样走:
试试这个:
var value = $(this).closest('.playerul').next(".collapse");
value.hide(); // to hiding
console.log(value);
目前我使用
$(this).parent().parent().parent().parent().$(".collapse");
我尝试使用 .closest(".playerul") 但没有找到任何东西。
在父级中传递选择器也没有成功。
我必须这样走:
试试这个:
var value = $(this).closest('.playerul').next(".collapse");
value.hide(); // to hiding
console.log(value);