I have a form with HTML 5 validation in it that is working fine.
When an user clicks <input type="submit">
the validation is triggered.
But I add Google recaptcha
to it the validation is no linker triggered.
Any suggestions?
<input type="submit" class="g-recaptcha btn btn-info pull-right" data-sitekey="*`***************************************" data-callback="YourOnSubmitFn">
<script src="https://www.google.com/recaptcha/api.js"></script>
<script>
function YourOnSubmitFn(token) {
document.getElementById('contact').submit();
}
</script>