Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.submitted||!this.optional(a)||this.optional(a)=="dependency-mismatch")){this.element(a)
- }}};
- jQuery.validator.addMethod("validPostalCode",function(b,a,c){return this.optional(a)||swa.validation.validPostalCode(b,c)
- },"Please enter a valid postal code.");
- jQuery.validator.addMethod("notInSet",function(b,a,c){return this.optional(a)||swa.validation.notInSet(b,c)
- },"You have already entered this value.");
- jQuery.validator.addMethod("notContains",function(b,a,c){return this.optional(a)||swa.validation.notContains(b,c)
- },"Should not match.");
- jQuery.validator.addMethod("optionalDigits",function(b,a,c){return this.optional(a)||swa.validation.optionalDigits(b,a,c)
- },"Please enter only digits");
- jQuery.validator.addMethod("validDate",function(b,a,c){return this.optional(a)||swa.validation.validDate(b,a,c)
- },"Please enter a valid date");
- jQuery.validator.addMethod("isBeforeToday",function(b,a,c){return this.optional(a)||swa.validation.isBeforeToday(c)
- },"Please enter a date before today");
- jQuery.validator.addMethod("lettersWithSpaces",function(b,a,c){return this.optional(a)||swa.validation.lettersWithSpaces(b,a,c)
- },"Letters and spaces only please");
- jQuery.validator.addMethod("multipleLettersWithSpaces",function(b,a,c){return this.optional(a)||swa.validation.multipleLettersWithSpaces(b,a,c)
- },"Letters and spaces only please");
- jQuery.validator.addMethod("alphaNumPlusPunctPlusOneSpace",function(b,a,c){return this.optional(a)||swa.validation.alphaNumPlusPunctPlusOneSpace(b,a,c)
- },"Letters, numbers and \"#&'()*,-.:;?@_~ only please");
- jQuery.validator.addMethod("alphaNumPlusSpace",function(b,a,c){return this.optional(a)||swa.validation.alphaNumPlusSpace(b,a,c)
- },"Letters, numbers and spaces only please");
- jQuery.validator.addMethod("alphaNumPlusPunctAmpPlusOneSpace",function(b,a,c){return this.optional(a)||swa.validation.alphaNumPlusPunctAmpPlusOneSpace(b,a,c)
- },"Letters, numbers and \"#&'()*,-.:;?@_~& only please");
- jQuery.validator.addMethod("digitsWithSpaces",function(b,a,c){return this.optional(a)||swa.validation.digitsWithSpaces(b,a,c)
- },"Digits and spaces only please");
- jQuery.validator.addMethod("alphaNumPlusUnderscore",function(b,a,c){return this.optional(a)||swa.validation.alphaNumPlusUnderscore(b,a)
- },"Letters, numbers and/or underscores only please");
- jQuery.validator.addMethod("alphanumericWithSpaces",function(b,a){return this.optional(a)||/^[\w]+(\s[\w]+)*$/i.test($.trim(b))
- },"Letters, numbers, spaces or underscores only please");
- jQuery.validator.addMethod("atleastOneCharacter",function(b,a){return this.optional(a)||/[a-z]/i.test($.trim(b))
- },"Please enter a minimum of one character");
- jQuery.validator.addMethod("noSpecialCharacters",function(b,a){return this.optional(a)||swa.validation.alphaNumPlusSpecial(b,a)
- },"Letters, numbers, or #&!@$%^*(){}[]:;\"'<>,.?/~`+-_= only please");
- jQuery.validator.addMethod("alphaNumPlusSpacePlusDashUnderScoreDot",function(b,a){return/^[a-zA-Z0-9\-\.\s_]+$/i.test($.trim(b))
- },"Please enter a minimum of one character");
- jQuery.validator.addMethod("alphaNumPlusSpacePlusDashUnderScore",function(b,a){return this.optional(a)||/^[a-zA-Z0-9\-\s_]+$/i.test($.trim(b))
- },"Letters, digits, spaces, dash and underscore only please");
- jQuery.validator.addMethod("alphaNumPlusSpacePlusSpecial",function(b,a){return this.optional(a)||swa.validation.alphaNumPlusSpacePlusSpecial(b,a)
- },"Letters, numbers, spaces, or #&!@$%^*(){}[]:;\"'<>,.?/~`+-_= only please");
- jQuery.validator.addMethod("revalidate",function(b,a,c){$(c).valid();
- return true
- });
- jQuery.validator.addMethod("companyId",function(b,a){return/^99\d{6}$/i.test($.trim(b))
- },"The Company ID is invalid");
- jQuery.validator.addMethod("isUsPhoneNumberEmpty",function(b,a,c){return swa.validation.isUsPhoneNumberEmpty(c)
- });
- jQuery.validator.addMethod("isUsPhoneNumberComplete",function(b,a,c){return swa.validation.isUsPhoneNumberComplete(c)
- });
- jQuery.validator.addMethod("isUsPhoneNumberNumeric",function(b,a,c){return swa.validation.isUsPhoneNumberNumeric(c)
- });
- jQuery.validator.addMethod("isUsPhoneNumberEmptyOrComplete",function(b,a,c){return swa.validation.isUsPhoneNumberEmptyOrComplete(c)
- });
- jQuery.validator.addMethod("isUsPhoneNumberEmptyOrNumeric",function(b,a,c){return swa.validation.isUsPhoneNumberEmptyOrNumeric(c)
- });
- jQuery.validator.addMethod("isDOBComplete",function(b,a,c){return swa.validation.isDOBComplete(c)
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement