sm-validator
v1.0.0
Published
a simple but powerful tool for validating form fields. enjoy it!
Downloads
2
Maintainers
Readme
sm-validator(small form validator)
Features
Less than 10KB
No dependencies
Customizable rules messages and styles
Support bootstrap and semantic
Useable RegExp on html
Demos
- Simplest demo
<input type="text" data-rule="required">
<script>
new SMValidator('input');
</script>
Support third-party UI framework
Download
Use npm
npm install --save sm-validator
Use bower
bower install sm-validator
Documents
About dist
SMValidator.js
source with configSMValidator.min.js
the minify for SMValidatorSMValidator.pure.min.js
without config, set rule and style by yourself
TODO
详细的API说明
测试用例及浏览器兼容测试
英文文档
添加vue、jquery插件版本
Reference
some inspirations comes from: nice-validator