abu*_*abu 8 javascript jquery recaptcha
我想在Google reCAPTCHA上捕获点击事件,如下所示.
我使用以下代码.
jQuery('#I0_1444640729099').on('load', function() {
jQuery(".recaptcha-checkbox-checkmark").click(function() {
alert("test");
});
});
Run Code Online (Sandbox Code Playgroud)
但我不能这样做.谁能在这方面帮助我?我也想抓住成功的验证码提交事件.
小智 3
您可以向 Google 提供的 DIV 添加数据回调:
<div class="g-recaptcha" data-callback="recaptchaCallback" data-sitekey="RECAPTCHA_KEY"></div>
Run Code Online (Sandbox Code Playgroud)
然后将 callbak 函数添加到代码中:
$("#g-recaptcha-response").on("click", function(){
alert("test"); });
Run Code Online (Sandbox Code Playgroud)
我希望我有所帮助
| 归档时间: |
|
| 查看次数: |
3838 次 |
| 最近记录: |