H
H
HAbRAhabp2015-10-30 20:47:05
JavaScript
HAbRAhabp, 2015-10-30 20:47:05

Why doesn't callback work in reCaptcha 2?

There is such a script

<html>
<head></head>
<body>
<form>
<div class="g-recaptcha" data-callback="calback()" style=" text-align: center;" data-sitekey="6Lc49w*************************"></div>
<button type="submit" disabled class="md-btn md-btn-primary md-btn-large log_in">Войти</button></form>
<script src="/i/js/jquery_min.js"></script>
<script>
    function calback() {
        $('.log_in').prop( "disabled", false );
    }
</script>
<script src='https://www.google.com/recaptcha/api.js'></script>
</body></html>

but for some reason it doesn't work. Namely, the callback function. What's wrong here? If you enter callback()
it in the console, everything works fine. And through recaptcha does not want.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arman, 2015-10-30
@HAbRAhabp

And if:
And better "callback"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question