add return:false;
to the event handler to stop the default action.
$(".by_maker").on('click',function(){
var c_maker = $(this).attr('href');
$.ajax({
type: "GET",
datatype: "html",
url: "index.php?page=search_result",
data: "maker="+c_maker,
success: function(response){
html(response);}
});
return false;
});
Alternatively, you can pass in the event
to the callback function, and preventDefault();
$(".by_maker").on('click',function(event){
event.preventDefault();