Search code examples
jssor

Jssor slider - How do I destroy and recreate Jssor slider with different content


I'm trying to use Jssor slider to show different HTML content depending on selected category and its subcategory. I successfully created content slider for one subcategory, but I can't figure out how can I destroy my current slider and recreate it with different content loaded with Ajax. Item count differs in subcategories, so as I understand - changing current slides is not an option.

So, my question is - how do I destroy current Jssor slider and make way for a new one?


Solution

  • Please simply remove the slider container.

    $("#slider1_container").remove();