bqworks / slider-pro

A modular, responsive and touch-enabled jQuery slider plugin that enables you to create elegant and professionally looking sliders.
MIT License
877 stars 390 forks source link

Clearing slides and thumbs using JQuery empty() #258

Closed capegreg closed 3 years ago

capegreg commented 6 years ago

I am loading slides and thumbs when user clicks nav link. I need to clear both without refreshing the browser. Currently, empty() is working, but want to know if there is an api method available.

$("#myslider .sp-slides").empty(); $("#myslider .sp-thumbnails").empty();

davidghi commented 6 years ago

Hi. You can to that if you then add other slides in their place.

Cheers!