更新时间:2023-10-30 16:02:04
使用 .next 选择相邻的 .open-list 元素。
.next
.open-list
/ p>
It should be:
$('.click-list').click(function () { $(this).next('.open-list').slideToggle(600); });
更新示例
只影响jquery中带有相同类的多个元素的clicked元素
如何在 XPath 中识别多个具有相同名称的元素?