javascript - Materialize Slider jQuery next slide on .click event trouble -
i'm having trouble getting class or id element go next slide when clicked. not sure i'm doing wrong. hope guys can help!
i have button want tell slider go next slide when clicked.
<a class="nextbutton waves-effect waves-light btn right">next</a>
i made sure initialize , create .click event function following initialization.
$(document).ready(function(){ $('.slider').slider({ }); }); $('.slider').slider('pause'); $(".nextbutton").click(function(){ $('.slider').slider('next'); });
i'm not sure i'm doing wrong. please?
Comments
Post a Comment