3
I am using an email form in PHP with POST method and use Google Recaptcha. I need to check in Javascript or jQuery, if reCAPTCHA was marked only then enable the send button.
The current code:
var checado = false;
jQuery("#recaptcha-anchor").each(function(){
if($(this).prop("checked")=="checked")
checado=true;
});
if(checado=true){
return true;
jQuery('#submitBtn').prop('disabled', false);
}else{
return false;
}
NOTE: I don’t have access to PHP code if it needs to be changed.
With this return I can already ignore the whole process of checking by PHP described in this reply?
– Laércio Lopes
No, because the user can simply remove the script client-side. The verification shall be made server-side also.
– Raizant