i made a page that shows a list of accounts with details (7700 accounts) and then i add pagination and filters. when user submit his filters , filters send in body of my api and get back the new and filtered data. its ok but when user change the page and go to page 2 from first page , the all filters will disappear. how can i fix the filter even if the user change the pages
$('#pagination-demo').twbsPagination({
totalPages: 270,
visiblePages: 10,
next: 'Next',
prev: 'Prev',
onPageClick: function (event, page) {
console.log(page)
///////////////////////showing table information///////////////////
let FilterList = {
business_type: "",
influencer_size: "",
avg_likes: "",
avg_comments: "",
eng: "",
gender: "",
avg_post_price: "",
avg_story_price: ""
}
let bodyContent = new FormData();
let data = new FormData();
data.append("page", page);
data.append("filter", JSON.stringify(FilterList));
/////////////////requesting and geting data//////////////
////////////////filters////////////////////
var showAllResult = document.getElementById("showAllResult")
showAllResult.addEventListener('click', () => {
var CopyOfFilterList = [...FilterList]
//////////////new request to send filter and geting response////////
})
$('#page-content').text('Page ' + page) + ' content here';
}
});