如果条件有效,我该如何处理下一张幻灯片?
流速:
我有2个按钮:单个和已婚,如果按钮尚未点击,则可以进入下一张幻灯片,我想设置下一个如果条件有效
JS
$('#goToNextSlide').on('click', function () {
slider.goToNextSlide();
$('.sliderControl > a.prev > i').removeClass('disable');
var slideCount = slider.getCurrentSlideCount();
if(slideCount == 2 && getCookie("Gender")==''){
console.log("blabalalaba"); \\this line for handling the slide, but i dont know how to disable next slide
}
if(slideCount == 6){
Triangle();
$('.sliderControl > a.next > i').addClass('disable');
}
});