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
I think this is good to use like.
if ($(this).nextAll().length > 0) { alert("Exists"); }else{ alert("Don't exists"); }