I am using TwbsPagination plug in for displaying paging in my app. It is working fine when we set the page size while initializing. However, based on the search result, I want t
You can make use of destroy. See here.
destroy
So:
$('#pagination').twbsPagination('destroy');
Then reinitialize it:
$('#pagination').twbsPagination({totalPages:5});
Fiddle