Blog Details

by 
18 Jan/20

How to add Google reCAPTCHA to any form to reduce spam?

<script src=’https://www.google.com/recaptcha/api.js’></script>

<div class=”g-recaptcha” data-sitekey=”REPLACE_WITH_YOUR_KEY_HERE” data-callback=”googlecheck“></div>

<script>
jQuery(“button[type=’submit’]”).attr(‘disabled’, ‘disabled’);
function googlecheck() {
jQuery(“button[type=’submit’]”).removeAttr(‘disabled’);
}

</script>

Cart (0 items)
Need Help? Chat with us