I am using an email form in PHP with POST method and I use Google ReCaptcha. I need to check in javascript or jQuery, if reCAPTCHA has been marked to only enable the submit 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 do not have access to PHP code if it needs to be changed.