我有以下行可以正常工作
$("#myDiv img:not(:eq(0))").hide();
我想写一个类似的行,但使用“this”。所以:
$(this":not(:eq(0))").hide();
但这行不通...有什么地方出错了吗?
最佳答案
试试 .not(selector)
http://api.jquery.com/not/
关于javascript - 使用 :not selector with $(this),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5246994/