How can i make this slider code to autoplay in JavaScript?
问题 Hello I'm trying to get this slider to auto play in Javascript, but I can't seem to get it to work, Does anyone know how I can achieve this? I took the slider from here: Here is the current code: $(".button-next").click(function() { var e = $(".feature-slide.active"); $(e).removeClass("active"), $(e).next().addClass("active"), $(".feature-slide").hasClass("active") || $(".feature-slide:first").addClass("active") }); $(".button-prev").click(function() { var e = $(".feature-slide.active"); $(e)