jQuery: Checking if next element exists

后端 未结 7 837
庸人自扰
庸人自扰 2020-12-02 18:08

Is there a way to check if an next element exists? Check my code:

if($(\"#people .making-of .mask ul li.current\").next(\"li\") != null) {
    alert(\"Exists         


        
7条回答
提交回复
热议问题