Last active
October 5, 2016 09:14
-
-
Save bogdandynamic/4fdc912f76e1a20d9bc28eaa3729e2ed to your computer and use it in GitHub Desktop.
Google reCaptcha js validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(recaptchaRegister !== null && recaptchaRegister !== 'undefined'){ | |
var resp = grecaptcha.getResponse(recaptchaRegister); | |
if(resp === null || resp === ""){ | |
alert('Captcha not completed'); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment