Find the element before and after a specific element

前端 未结 1 578
星月不相逢
星月不相逢 2021-02-03 19:13

I have a list with links I use with tabs. It looks like this:

1条回答
  •  一整个雨季
    2021-02-03 20:04

    $("li.active").next();
    

    and

    $("li.active").prev();
    

    0 讨论(0)
提交回复
热议问题