diff --git a/assets/js/recaptcha.js b/assets/js/recaptcha.js index 753c207..b8cf89e 100644 --- a/assets/js/recaptcha.js +++ b/assets/js/recaptcha.js @@ -1,12 +1,12 @@ var captchas = []; var onloadCallback = function() { - jQuery('.g-recaptcha').each(function(index, el) { - captchas[el.id] = grecaptcha.render(el, $(el).data()); + document.querySelectorAll('.g-recaptcha').forEach(function(el) { + captchas[el.id] = grecaptcha.render(el, el.dataset.id); }); } function resetReCaptcha(id) { var widget = captchas[id]; grecaptcha.reset(widget); -} \ No newline at end of file +}