give multiple class and id for each owl carousel function

Solutions on MaxInterview for give multiple class and id for each owl carousel function by the best coders in the world

showing results for - "give multiple class and id for each owl carousel function"
Alessandra
27 Sep 2018
1$(document).ready(function() {
2
3  $("#owl-demo, #owl-demo-1").each(function() {
4    $(this).owlCarousel({
5      items : 6, //10 items above 1000px browser width
6      itemsDesktop : [1000,6], //5 items between 1000px and 901px
7      itemsDesktopSmall : [900,3], // 3 items betweem 900px and 601px
8      itemsTablet: [600,2], //2 items between 600 and 0;
9      itemsMobile : false // itemsMobile disabled - inherit from itemsTablet option
10    });
11  });
12  // Custom Navigation Events
13  $(".next").click(function(){$(this).closest('.span12').find('.owl-carousel').trigger('owl.next');})
14  $(".prev").click(function(){$(this).closest('.span12').find('.owl-carousel').trigger('owl.prev');})
15});
similar questions