How to check google recaptcha in ajax form?

There are ajax form how to make so that it checked whether the checkbox is pressed google recaptcha?
$(document).ready(function() {
$('.form_modal').validate({
 rules: {
 modal_form_name: "required",
 modal_form_phone: "required",

},
 messages: {
 modal_form_name: "Enter Your name",
 modal_form_phone: "Enter Your phone",
},


 submitHandler: function(form, event) {
event.preventDefault();
 var form = $('.form_modal'),
 url = form.attr('action'),
 type = form.attr('type') ? form.attr('type') : 'POST';
$.ajax({
 type: type
 url: url,
 data: form.serialize(),
 success: function() {
 form.hide().parent().html('<div class="big-4">Thanks! Your request has been accepted. </div><br/><div class="big-4">Our staff will contact You shortly.</div>')
}
});
}
});
});
April 7th 20 at 15:39
0 answer

Find more questions by tags AJAXPHPreCAPTCHA