PHP Classes

File: assets/js/editUser.js

Recommend this page to a friend!
  Classes of Kishor Mali   PHP Hotel Booking System   assets/js/editUser.js   Download  
File: assets/js/editUser.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Hotel Booking System
Manage the booking of hotel rooms for customers
Author: By
Last change:
Date: 6 months ago
Size: 875 bytes
 

Contents

Class file image Download
/** * File : editUser.js * * This file contain the validation of edit user form * * @author Kishor Mali */ $(document).ready(function(){ var editUserForm = $("#editUser"); var validator = editUserForm.validate({ rules:{ fname :{ required : true }, email : { required : true, email : true }, cpassword : {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" }, cpassword : {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" } } }); });