javascript - BxSlider—Click Slide for Next -


instead of using prev/next controls, i'd turn slide next button. pretty straightforward functionality, can't seem figure out.

this have:

$(document).ready(function() {   $('.bxslider').bxslider({     adaptiveheight: true,     easing: 'cubic-bezier(0.600, 0.060, 0.500, 1)'   });   $('.bxslider').click(function() {     slider.gotonextslide();     return false;   }); }); 

firstly, create instance of slider this

var slider = $('.bxslider').... , attach onclick same input.

something should work.

var slider = $('.bxslider').bxslider({     adaptiveheight: true,     easing: 'cubic-bezier(0.600, 0.060, 0.500, 1)' }).on('click', function(){     slider.gotonextslide(); }); 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -