I am trying to make a Image slider where it will slide when the check box is checked . in html there are three checkbox and my javascript code is
$(document).ready(function(){
var i=1;
function movetheslide(x){
console.log(x);
$('#slide-dot-' + x).checked=true;
}
function moveslidercall(){
console.log(i);
$('#slide-dot-','#slide-dot-','#slide-dot-').checked=false;
i++;
movetheslide(i%3);
}
setTimeout(moveslidercall(),1000);
});
there are three checkboxes and i want only 1 checkbox checked in 1s of time and rest all unchecked and this should make the image slide slide automatically thanks
Aucun commentaire:
Enregistrer un commentaire