<div id="spinner"></div>
async function send(start_id) {
let frm = new FormData($("#form-search"));
$('#spinner').removeAttr('hidden');
frm.append('start_id', start_id);
let response = await fetch('/vip/orders_find', {
method: 'POST',
body: frm
});
if (response.ok) {
let json = await response.json();
$('#csrf').val(json.csrf);
$('#spinner').attr('hidden', '');
let res = json.search;
...
}
}