I've set up an Own carousel and created a certain amount of slides from the JSON file I have:
$.getJSON("url", function(data) {
var slides = data["data"];
for (var i = 0; i < slides.length; i++) {
var slide = "...";
$(".owl-carousel").append(slide);
}
}
Although I want to create all of the slides at the beggining, I need to disable (filter) some of them as I interact with the page. Is there any way to do it? I suppose I need to do something to <div class="owl-item">...</div>
I want to disable, however I am not sure what exactly.
PS: I tried to simply remove that .owl-item
classname from the items I want to disable, however this seem to break the layout.