I have a slide show use setInterval
5sec, each slide should stop 5 sec.
When user click previous button, slide will go back previous image.
My problem is when user click previous, time still counting. (previous image only stop 3sec not 5sec)
Is any way to reset time when user click?
setInterval(function(){
//start slide...
},5000);
$('#previous').click(function(){
//go back to previous slide and reset time
});