101
rated 0 times
[
108]
[
7]
/ answers: 1 / hits: 100803
/ 13 Years ago, thu, october 6, 2011, 12:00:00
Is there a way to check if a next element exists? Check my code:
if($("#people .making-of .mask ul li.current").next("li") != null) {
alert("Exists");
}
else {
alert("Dont exists");
}
What am I doing wrong? Thanks a lot!
More From » jquery