Callback for connecting with other dom elements.
Issue #6
resolved
Hi. I need to make changes in dom elements on each slide change. I've tried to get information about current slide in onSlideChange callback: function(this) { alert('current slide' + this.current); } But no chance. Could You please help me with this problem?
Comments (5)
-
repo owner -
repo owner You can try this.slide :
$('.responsive-slider').responsiveSlider({ autoplay: true, onSlideChange: function() { console.log('Slide numer: '+this.slide); } });
-
reporter Yes, I'm using the latest version. Your code returns "Slide numer: undefined"
-
reporter Sorry, It was my fault. I was using 0.8 version. Thanks for Your answer.
-
repo owner - changed status to resolved
- Log in to comment
Are you sure you are using the latest version of slider (v0.9)?