How to cycle through siblings using jQuery?

前端 未结 4 1333
南旧
南旧 2020-12-11 18:24

I have the folowing code:

html:

A
B<
4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-11 18:55

    One simple way is this :

    $("#container").find("div:eq(0)").addClass("selected");
    

提交回复
热议问题