Skip to content

Ak-sky/JS_Validation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js_validation

Form Validation with Javascript

TO initiate Form Validate call this function

And pass id of the form as an argument

Validation.Initiate("");

EX: Validation.Initiate("myform");

TO define the Form validation rules

~ id : id of the field followed by additional paramenters.

Ex: Validation.fields = [ {id: "newField", custom: "test"}, {id: "name", type: "name"}, {id: "password", maxlength: 10, minlength: 4, required: true, match: "repassword"}, {id: "date", required: true}, {id: "file", required: true}, {id: "email", type: "email", number: 5}, {id: "name", type: "name"}, {id: "mobile", type: "mobile"}, {id: "radio", type: "radio"}, {id: "dropdown", type: "dropdown"} ];

About

Form Validation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.9%
  • HTML 27.1%