jquery ajax in php to stop refresh the page

jquery ajax in php to stop refresh the page

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

  1. <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>