image I have an api that loads 10 items from a Jasonfile When i click the mehr(more) button. If clicked again, it loads 10 more and so on... In the JPlayer documentation, they only show how to remove 1 item at a time:
myPlaylist.remove(); // Removes all items
myPlaylist.remove(0); // Removes the 1st item
myPlaylist.remove(1); // Removes the 2nd item
myPlaylist.remove(-1); // Removes the last item
Is it possible to remove 10 items at once when i click the weniger(less) button? I tried this:
$(".pc-less-btn.btn-{{ pk }}").click(function() {
myPlaylist.remove(10); // To Removes 10 items but doesn't works
});
Option 1: set new playlist
Option 2: remove one by one (Not recommended)