Hi I have jQuery carousel it's playing fine on clicking the next pre buttons, Also i need autoplay, i am not able to add Autoplay, please help me thanks in advance, below is the code.
(function($) {
$(function() {
$('.jcarousel').jcarousel();
$('.jcarousel-control-prev')
.on('active.jcarouselcontrol', function() {
$(this).removeClass('inactive');
})
.on('inactive.jcarouselcontrol', function() {
$(this).addClass('inactive');
})
.jcarouselControl({
target: '-=1'
});
$('.jcarousel-control-next')
.on('active.jcarouselcontrol', function() {
$(this).removeClass('inactive');
})
.on('inactive.jcarouselcontrol', function() {
$(this).addClass('inactive');
})
.jcarouselControl({
target: '+=1'
});
$('.jcarousel-pagination')
.on('active.jcarouselpagination', 'a', function() {
$(this).addClass('active');
})
.on('inactive.jcarouselpagination', 'a', function() {
$(this).removeClass('active');
})
.jcarouselPagination();
});`enter code here`
})(jQuery);