I have a selectbox to set the total records per page with following JS:
<script>
$(function(){
// bind change event to select
$('#itemspage').on('change', function () {
var items = $(this).val(); // get selected value
if (items) { // require a URL
window.location = "afhaal_pagination.php?limit="+items; // redirect
}
return false;
});
});
</script>
This is working, no problem. Now I want to have the selected value is selected when the page reloads with that value.
Any help please..