that’s part of my script:
var count = $(".sliderItem").length;
if (count < lp + 5)
{
alert("bp4");
var clips = count-l;
alert("bp5");
}
so the problem is: ‘bp4’ is visible but ‘bp5’ not.
when I change var clips = count-1; to var clips = 1; it works fine.
Somebody have some idea?
You don’t have
var clips = count-1;in your code, you havevar clips = count-l;.Change the letter
l(lower case L) to1in your code.