$(document).ready(function() {
  $(".per-page").chosen({
    width: '70px',
    disable_search_threshold: 20,
  });

  $(".per-page").change(function () {
    location.href = add_parameter(location.href, 'per_page', $(this).val());
  });
});
$(document).ready(function() {
  $(".per-page").select2({
    width: '70px',
    minimumResultsForSearch: 20,
  });

  $(".per-page").change(function () {
    location.href = add_parameter(location.href, 'per_page', $(this).val());
  });
});
Make pagination dropdown into select2
Make pagination dropdown into select2
