How to remove automatic scrolling up in AJAX request?

Hello! I don't know any java script or jQuery, respectively. Found a ready-made solution on the Internet. Please tell me how to get rid of the scroll up with each ajax request?
$(document).ready(function(){
filter_data();
 function filter_data()
{
 $('.filter_data').html('<div id="loading" style="" ></div>');
 var action = 'fetch';
 var minimum_price = $('#minimum_price').val();
 var maximum_price = $('#maximum_price').val();
 var brand = get_filter('brand');
 var id = get_filter('id');
 var for = get_filter('for');
$.ajax({
url:".filter.php",
method:"POST",
 data:{action:action, minimum_price:minimum_price, maximum_price:maximum_price, brand:brand id:id, for, for},
success:function(data){
$('.filter_data').html(data);
}
});
}

 function get_filter(class_name)
{
 var filter = [];
$('.'+class_name+':checked').each(function(){
filter.push($(this).val());
});
 return filter;
}

$('.common_selector').click(function(){
filter_data();
});


$('#price_range').slider({
range:true
min:1000,
max:5000,
 values:[1000, 5000],
step:500,
 stop:function(event, ui)
{
 $('#price_show').html(ui.values[0] + ' - ' + ui.values[1]);
$('#hidden_minimum_price').val(ui.values[0]);
$('#hidden_maximum_price').val(ui.values[1]);
filter_data();
}
});

});


This product filter. The data are loaded from sql via file filter.php
More, I think, is not necessary.
Reviewed on the Internet all that is possible, there are no options like "at the end to finish return false" does not work. He did not understand in js, please help. Thank you
April 7th 20 at 15:30
0 answer

Find more questions by tags AJAXjQuery