$('select').on('change', function() {
$insurance_id = $('#insurance').val() ?? 0;
$rating = $('#rating').val() ?? 0;
$.pjax({
timeout: 4000,
url: $('#filter-form').attr('action'),
container: '.my_class_for_summary',
fragment: '.my_class_for_summary',
scrollTo: true,
replace: false,
data: {insurance: insurance_id, rating: rating},
});
});