welisonmenezes / vanilla-validator Goto Github PK
View Code? Open in Web Editor NEWVanilla Validator, a form validator by pure JavaScript
Home Page: https://welisonmenezes.github.io/vanilla-validator/
Vanilla Validator, a form validator by pure JavaScript
Home Page: https://welisonmenezes.github.io/vanilla-validator/
How to prevent validation on hidden text fields (ie inside a hidden div)?
I'm getting this error only on one instance.
Working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/register AND https://0rnpvmpswe06x9m3-27895142.shopifypreview.com/account/login
Not working: https://0rnpvmpswe06x9m3-27895142.shopifypreview.com -- hover over 'Account'
My code:
// Custom form validation for account and registration forms using Vanilla Validator
var registerConfig = {
container: '#create_customer',
validationBy: 'onclick',
validateOnFieldChanges: true,
selectors: {
required: 'vv-required'
},
messages: { // can also be set by html attribute 'data-message-error'
required: 'This field is required'
}
};
var registerValidator = new VanillaValidator(registerConfig);
var loginConfig = {
container: '#customer_login',
validationBy: 'onclick',
validateOnFieldChanges: true,
selectors: {
required: 'vv-required'
},
messages: { // can also be set by html attribute 'data-message-error'
required: 'This field is required'
}
};
var loginValidator = new VanillaValidator(loginConfig);
The login link provided is essentially the same form as the mini login form. Why does one work and not the other?
When using the Tab key to move the focus to a field, the destination field will trigger it's validation error property if it is empty but doesn't when clicking on it.
How to prevent the error from triggering when tabing to a field?
Forms with async fields need to be submitted twice to get sent. Any way to avoid that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.