Please help me out!
Everything worked when I was using v1
Now I am using v2 beta.
$('.step-contents').owlCarousel({
items : 1,
dots: false,
autoHeight : true,
singleItem : true,
//autoplay
touchDrag : false,
mouseDrag : false,
autoPlay : false,
//Transitions
//transitionStyle : "scaleUp"
});
var owl_carousel = $(".step-contents").data('owlCarousel');
$(document).on('click','.step-2',function(){
owl.goTo(1); // this is not working
owl_carousel.trigger('to.owl.carousel', [1]);
//this too is not working
});
when is use
$('.step-contents')..trigger('to.owl.carousel', [1]);
TypeError: this._pages[(((b % e) + e) % e)] is undefined
is throwing
Try:
$('.step-contents').trigger('to.owl.carousel', 1);
I get the same thing as @edelworksgithub above.
Uncaught TypeError: Cannot read property 'start' of undefined
At the same code block, essentially.
Try to set 'dots' property to true, or set 'slideBy' property to 'page'.
There is a bug with dots: false and the to.owl.carousel event. This is a dupe of #448
Most helpful comment
Try: