My presentation is "slider (vertical)".
To customise user interaction, have dynamicaly delete some pages from DOM with jQuery.
How can I update number of "AnythingSlider slides"(nav.numPages) after DOM modification, so the navigation next/back will respect reduced number of slides.
My script:
$(document).ready(function(){
$("body").append("<div id='popups' class='hidden'></div>");
$("li[data-bookmarks*='popuppage']").detach().appendTo("#popups").css("list-style-type", "none");
// here would like to update "nav.numPages" variable //
});
This was somehow managed automatically in older in5 version.