Direktori : /home/athamevents/www/admin/assets/lib/jquery-validation/src/additional/ |
Current File : /home/athamevents/www/admin/assets/lib/jquery-validation/src/additional/dateFA.js |
$.validator.addMethod("dateFA", function(value, element) { return this.optional(element) || /^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value); }, "Please enter a correct date");