Validator - Lightweight & Easy simple HTML form Validator
The Validator is cross-browser and will give you the power to use future-proof input types such as:
first-name, last-name, email, phone url and https.
// usage this Cdn: <script src="https://cdn.jsdelivr.net/gh/jahids/Form-validation-livery/build/main.bundle.js"></script>
// usage config code : new testLibrary.default(document.getElementById('form'), {
'first-name': { minLength: 2, nonNumeric: true },
'last-name': { minLength: 3, nonNumeric: true },
'my-email': { minLength: 5 },
'phone': { minLength: 11, maxLength: 12 },
'password': { hasUpperCase: true, hasLowerCase: true },
'url': { hasHttps: true }
})
// You can show eror message you can use this html code
<small id="first-name" class="small"> </small>
- every browser support validation
- Flexible error messaging system
- Light-weight this livery