Answer the question
In order to leave comments, you need to log in
ReCaptcha validation before form submission?
Hello everyone, I installed the recaptcha, on the server, etc., everything is fine, but how can I check if the checkbox is checked before sending it or not?
if (grecaptcha.getResponse() == ""){
$('#grecaptcha').html('Подтвердите что вы не робот');
return false;
}
Answer the question
In order to leave comments, you need to log in
I used this to test myself
var v = grecaptcha.getResponse();
if (v.length == 0) {
//
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question