javascript - Google ReCAPTCHA callback function not working -


i use google's recaptcha on website , i'm having problems getting call callback function. after user has passed captcha want call function. use div these attributes render captcha:

class='g-recaptcha' data-sitekey='keyhere' data-callback='alert(1);' 

however, can't alert(1); trigger, nothing happens when fill out captcha. else captcha works fine, can't call function. doing wrong?

i haven't used it, don't know if help, looking @ few examples online can find, looks data-callback should function name, not script body:

class='g-recaptcha' data-callback='dosomething'  function dosomething() { alert(1); } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -