$.ajax({
url: *.php,
method: "post",
data: data,
error:function (message) {
console.log('err');
},
success:function (data) {
console.log('ok');
}
}),