Home > Q&A > body text
$(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?
黄舟2017-07-05 11:03:08
siblings without brackets
我想大声告诉你2017-07-05 11:03:08
It seems that the author is not too familiar with jquery,