addMethod()Extend the validator with your own logic using jsValidation.addMethod(name, fn, message).
noSpaces rulejsValidation.addMethod('noSpaces', function (value) {
return !/\\s/.test(value);
}, 'Spaces are not allowed.'); strongPassword rulejsValidation.addMethod('strongPassword', function (value) {
return /[A-Z]/.test(value) && /[0-9]/.test(value) && /[^A-Za-z0-9]/.test(value);
}, 'Must contain an uppercase letter, a digit, and a special character.');