NativeValidate.js is a simple validator enhancer for your simple forms. It uses in-built browser validation API to validate your form fields.
npm i nativevaliatorjs
OR Include
https://cdn.jsdelivr.net/gh/Vishnu053/nativevalidatejs@main/nativeValidate.min.js
Include
nativeValidate.min.js
ornativeValidate.js
in your project
choose a unique name for your parent element covering all your inputs to be validated. This classname should be passed to all the nativeValidate functions you call.
Call listenForValidation() to listen and validate.
Call validateInputs() to validate all inputs at once.
You can find demo in demo.html