https://github.com/rezigned/form
This is part of Javascript Form Utilities that I developed to make form validation with js become easier.
https://github.com/rezigned/form
Last synced: 8 months ago
JSON representation
This is part of Javascript Form Utilities that I developed to make form validation with js become easier.
- Host: GitHub
- URL: https://github.com/rezigned/form
- Owner: rezigned
- Created: 2011-01-13T07:05:46.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-23T13:53:33.000Z (over 14 years ago)
- Last Synced: 2025-09-08T23:36:33.361Z (8 months ago)
- Language: JavaScript
- Homepage: http://nligthen.github.com/Form
- Size: 109 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. JS Form (Alpha)
This is part of Javascript Form Utilities that I developed to make form validation with js become easier.
h2. License
Tired of licenses
h2. Company
"Landau Reece.":http://www.landaureece.com
h2. Usage
Validator.Form('#form_id', {
// simple style 'input name' + 'array'
firstname: {
rules: ['required']
}
email: {
rules: ['email']
}
// more custom style 'input name' + 'object'
email_confirm: {
rules: {
email: true,
match: '#email' // make sure it match with 'email'
}
},
password: {
rules: {
required: function() {
// custom validation
}
}
},
// working with radios, checkboxes and multiple selects
choices: {
rules: {
required: true // normally you don't have to add 'required' rule since all elements defined here has a required by default
}
},
});
h2. New features to implement
# handle dynamic dom