An open API service indexing awesome lists of open source software.

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.

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