Multiple reCAPTCHAs in one ASP.Net page

前端 未结 6 1523
太阳男子
太阳男子 2021-01-18 13:27

It is possible to add multiple reCAPTCHAS in one form? I tried doing so, even giving the multiple reCAPTCHAS different IDs, but when I load the page in the browser, only one

6条回答
  •  春和景丽
    2021-01-18 13:52

    the captcha has an img element #recaptcha_challenge_image element , so after you set the recaptcha in one div say "regCaptch",get that img src attr ,set your other captcha div html to the old one html and then set the #recaptcha_challenge_image src to the src you get , here is a working example

        var reCaptcha_src = $('#recaptcha_challenge_image').attr('src');
        $('#texo').html($('#regCaptch').html());
        $('#recaptcha_challenge_image').attr('src',reCaptcha_src);
    

提交回复
热议问题