https://github.com/hwclass/validatestrictly
A small validation library to restrict characters to be entered into any input.
https://github.com/hwclass/validatestrictly
Last synced: 10 months ago
JSON representation
A small validation library to restrict characters to be entered into any input.
- Host: GitHub
- URL: https://github.com/hwclass/validatestrictly
- Owner: hwclass
- License: mit
- Created: 2014-10-26T17:43:26.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-26T18:44:24.000Z (over 11 years ago)
- Last Synced: 2025-06-02T07:16:48.264Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
validatestrictly
================
A Validation Plugin for Inputs with Parameters
Validates and deletes if input character value is a special char, digit or alphabetical by every char.
### usage
$('input').bind('keyup', function() {
$(this).validateStrictly(['case1','case2', 'case3'], [{customCaseN : 'abc'}]);
});
### usage (IE)
$('input').bind('keyup', function() {
$(this).validateStrictly(['specialChars','numbers'], [{customCaseN : 'abc'}]);
});
### usage (Modern Browsers)
$('input').on('input', function() {
$(this).validateStrictly(['specialChars','numbers'], [{customCaseN : 'abc'}]);
});