Find the element before and after a specific element

前端 未结 1 584
星月不相逢
星月不相逢 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)
提交回复
热议问题