How to get a specific jQuery item from a list of items?

后端 未结 5 1286
难免孤独
难免孤独 2021-01-07 23:23

I have this:

  • first
  • second
  • third
  • fourth
5条回答
  •  情深已故
    2021-01-08 00:19

    Use :eq() Selector. For for example, for second element use:

     $("ul li:eq(1)"); 
    

提交回复
热议问题