Skip to content

Instantly share code, notes, and snippets.

@bogdandynamic
Last active October 5, 2016 09:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogdandynamic/4fdc912f76e1a20d9bc28eaa3729e2ed to your computer and use it in GitHub Desktop.
Save bogdandynamic/4fdc912f76e1a20d9bc28eaa3729e2ed to your computer and use it in GitHub Desktop.
Google reCaptcha js validation
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