function validateRecaptcha() { var response = grecaptcha.getResponse(); if(response.length == 0) { document.getElementById('g-recaptcha-error').innerHTML = 'This field is required.'; return false; } return true; } function verifyCaptcha() { document.getElementById('g-recaptcha-error').innerHTML = ''; }

Pin It on Pinterest