PHP Classes

File: assets/appjs/addUser.js

Recommend this page to a friend!
  Classes of Kishor Mali   PHP User Feedback System   assets/appjs/addUser.js   Download  
File: assets/appjs/addUser.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP User Feedback System
Application to record feedback from customers
Author: By
Last change:
Date: 4 years ago
Size: 1,075 bytes
 

Contents

Class file image Download
/** * File : addUser.js * * This file contain the validation of add user form * * Using validation plugin : jquery.validate.js * * @author Kishor Mali */ $(document).ready(function(){ var addUserForm = $("#addUser"); var addUserFormValidator = addUserForm.validate({ rules:{ fname :{ required : true }, email : { required : true, email : true }, password : { required : true }, cpassword : {required : true, equalTo: "#password"}, mobile : { required : true, digits : true }, role : { required : true, selected : true} }, messages:{ fname :{ required : "This field is required" }, email : { required : "This field is required", email : "Please enter valid email address" }, password : { required : "This field is required" }, cpassword : {required : "This field is required", equalTo: "Please enter same password" }, mobile : { required : "This field is required", digits : "Please enter numbers only" }, role : { required : "This field is required", selected : "Please select atleast one option" } } }); });