Find the element before and after a specific element

前端 未结 1 852
旧时难觅i
旧时难觅i 2021-02-03 19:33

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

1条回答
  •  旧时难觅i
    2021-02-03 20:06

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

    and

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

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