Powerful pure Javascript form validator with a feature of adding your own validations
Powerful pure Javascript form validator with a feature of adding your own validations
formhandler.js has a few methods to connect to your project: CDN, npm or downloading latest release.
For using formhandler.js with CDN you need to include CSS in your <head>
tag.
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/formhandler.js@x.x.x/dist/css/formhandler.min.css">
Also needed inclusion Javascript before closing <body>
tag.
<script src="//cdn.jsdelivr.net/npm/formhandler.js@x.x.x/dist/js/formhandler.min.js"></script>
Firstly install formhandler.js package from npm.
npm i -D formhandler.js
In your Javascript file import formhandler.js.
import FormHandler from 'formhandler.js';
Then move formhandler.min.js from directory /node_modules/formhandler.js/dist/js/ in your project folder.
Include this one before closing <body>
tag
<script src="/path/to/dir/formhandler.min.js"></script>
Import slippery.min.css in your Sass/SCSS file using @import
.
@import "/node_modules/formhandler.js/dist/css/formhandler.min.css"
If you’re using another preprocessor, use equivalent of it.
Then just include formhandler.min.css inside of <head>
tag.
<link rel="stylesheet" href="/path/to/dir/formhandler.min.css">
If you don’t want to use CDN and you don’t use npm, then you need to download latest release
from Releases.
After that unpack archive and move CSS/JS files from formhandler.js-x.x.x/dist/ to where you want to.
Finally include slippery.min.css inside <head>
tag.
<link rel="stylesheet" href="/path/to/dir/formhandler.min.css">
Also include formhandler.min.js before closing tag.
<script src="/path/to/dir/formhandler.min.js"></script>
Every inputs must have an attribute name.
```html