How to reload the google recaptcha widget after user submits invalid inputs

前端 未结 11 1629
既然无缘
既然无缘 2020-12-25 12:08

I have a registration form with the new google recaptcha widget on it. When a user submits info, we check the validation with javascript and return the problems to the page

11条回答
  •  甜味超标
    2020-12-25 12:52

    if you are using new recaptcha 2.0 use this: for code behind:

    ScriptManager.RegisterStartupScript(this, this.GetType(), "CaptchaReload", "$.getScript(\"https://www.google.com/recaptcha/api.js\", function () {});", true);
    

    for simple javascript

    
    

提交回复
热议问题