Currently, I have developed a JavaScript script that filters names within a list. However, a problem has arisen with pagination - as the list paginates, I am unable to retrieve names without refreshing the page. Is there a way to use AJAX to access and display names from other pages without pagination? The URL format is similar to www.mysite.com/my_slug?page=1.
Your assistance on this matter would be greatly appreciated. Thank you!
$(document).ready(function(){
$("#filter-search").on("keyup", function() {
var value = $(this).val().toLowerCase();
$(".filter-data").filter(function() {
$(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
});
});
});