Modern, simple, lightweight (~5kb gzip) form validation library written in Typescript, with no dependencies (no JQuery!). Support a wide range of predefined rules, async, files, dates validation, custom error messages and styles, localization. Support writing custom rules and plugins.
Is your feature request related to a problem? Please describe.
Yes, most forms have recaptchas, however if we are using your libary it would be nice that we could use it for everything in form including recaptcha.
Describe the solution you'd like
Implement recaptcha validation using this basic js
var response = grecaptcha.getResponse();
if (response.length === 0) {
event.preventDefault(); // Prevent form submission
document.getElementById('recaptchafeedback').style.display = "block";
/// alert("Please complete the reCAPTCHA challenge.");
return false; // Prevent form submission
} else {}
Thanks for libary.
Is your feature request related to a problem? Please describe. Yes, most forms have recaptchas, however if we are using your libary it would be nice that we could use it for everything in form including recaptcha.
Describe the solution you'd like Implement recaptcha validation using this basic js
var response = grecaptcha.getResponse(); if (response.length === 0) { event.preventDefault(); // Prevent form submission