javascript - How to disable swiper `next` button -
i'm using swiper. use wizard. i've divided form multiple steps. because of this, next button should enabled if have valid form. cannot find in documentation how this. current swiper config looks this
var myswiper = new swiper ('.swiper-container', { // optional parameters direction: 'horizontal', loop: false, // navigation arrows nextbutton: '.swiper-button-next', prevbutton: '.swiper-button-prev', // , if need scrollbar scrollbar: '.swiper-scrollbar', allowswipetoprev: false, allowswipetonext: false, });
any suggestions how enable/disable next button?
Comments
Post a Comment