<form method="post" action="#" id="ajax_form" action="">
<div class="row">
<div class="col-6 col-12-mobile">
<input type="text" name="email" placeholder="Email" />
</div>
<div class="col-6 col-12-mobile">
<input type="password" name="password" placeholder="Пароль" />
</div>
<div class="col-12">
<input type="button" id="btn" value="Регистрация" />
</div>
</div>
</form>
let form = $('#ajax_form').
$.ajax({
url: form.attr('action'),
type: "POST",
data: form.serialize(),
async: false,
success: function (data) {
console.log(data);
}
});