javascript - Questions about sibling
迷茫
迷茫 2017-07-05 11:01:08
0
2
843

$(this).find(".pic").addClass("active").siblings.find(".pic").removeClass("active");

When you click on li, find the .pic in li and add style and remove other ones that are not clicked. Is there anything wrong with doing this?

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
黄舟

siblings without brackets

我想大声告诉你

It seems that the author is not too familiar with jquery,

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template