function tryToRegister(login_window) {
var form = $('.registration-form')[0];
var formData = new FormData(form);
formData.append('g-recaptcha-response', grecaptcha.getResponse());
$.ajax({
url: $(form).attr('action'),
type: 'POST',
data: formData,
async: true,
success: function (data) {
console.log(data)
//login_window.className += '_success';
//location.reload(true);
},
cache: false,
contentType: false,
processData: false
});
}