Select2 v4 how to paginate results using AJAX
Select2 supports pagination when using remote data through the pagination key that comes out of processResults. For infinite scrolling, the pagination object is expected to have a more property which is a boolean (true or false). This will tell Select2 whether it should load more results when reaching the bottom, or if it has reached … Read more