I have a signup form with AJAX so that I want to refresh Recaptcha image anytime an error is occured (i.e. username already in use).
I am looking for a code compatib
For new version of reCaptcha v2 use :
grecaptcha.reset();