Search code examples
jqueryslidercall

is there a uncall for jquery plugin?


I'm using a jquery plugin named bxslider.

To start the slider i call it with $('.bxslider').bxSlider();

Is there something to reverse that and remove the slider?

Thanks in advance


Solution

  • bxSlider has a destroySlider() function you can call on an instance, like this:

    var instance = $('.bxslider').bxSlider(); // create
    
    // do something...
    
    instance.destroySlider(); // destroy
    

    bxSlider documentation