When i clicked on book link he reload the page and sort the column . i want stop the reload using ajax ,,, How ? this jquery function
<script> $(document).ready(function() { $( "#sorter" ).click(function() { var order_by_value = $('input[name="order_by"]').val(); if(order_by_value == "ASC"){ $('input[name="order_by"]').val("DESC"); } else { $('input[name="order_by"]').val("ASC"); } $('input[name="current"]').trigger('click'); }); }); </script>