Support multiple CAPTCHA instances on the same page

This commit is contained in:
Kijin Sung 2016-06-08 00:04:32 +09:00
parent 5012bc194b
commit fe63f24617
5 changed files with 19 additions and 6 deletions

View file

@ -0,0 +1,11 @@
function reCaptchaCallback() {
$(".g-recaptcha").each(function() {
var instance = $(this);
grecaptcha.render(instance.attr("id"), {
sitekey: instance.data("sitekey"),
size: instance.data("size"),
theme: instance.data("theme")
});
});
}