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

$(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?

迷茫
迷茫

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

Popular topics
More>
Latest downloads
More>
web effects
Website source code
Website materials
Front end template
About us Disclaimer Sitemap
PHP Chinese website:Public welfare online PHP training,Help PHP learners grow quickly!