https://github.com/johnantoni/jquery.validate.filters
addon filters for jQuery.validate
https://github.com/johnantoni/jquery.validate.filters
Last synced: over 1 year ago
JSON representation
addon filters for jQuery.validate
- Host: GitHub
- URL: https://github.com/johnantoni/jquery.validate.filters
- Owner: johnantoni
- Created: 2011-06-26T04:32:31.000Z (about 15 years ago)
- Default Branch: master
- Last Pushed: 2011-07-20T19:34:34.000Z (about 15 years ago)
- Last Synced: 2025-02-05T19:08:59.735Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 93.8 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.markdown
Awesome Lists containing this project
README
# add-on filters for jquery.validate
## validate.accept:
regex form filter
### options
Only numbers:
rules: {
field: { accept: "[0-9]+" }
}
Only letters:
rules: {
field: { accept: "[a-zA-Z]+" }
}
# others
* phoneUK - validate UK phone number
* mobileUK - validate UK mobile phone number
* lettersOnly - validate only letter input
* numbersOnly - validate only numeric input
* postalCode - validate standard postal code format
* imgUrl - validate image url
### notes
look at jQuery.alphanumeric to prevent number / letter / pattern input -> [here](http://www.itgroup.com.ph/alphanumeric/)