$(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?
业精于勤,荒于嬉;行成于思,毁于随。
siblings without brackets
It seems that the author is not too familiar with jquery,
siblings without brackets
It seems that the author is not too familiar with jquery,