jQuery:validate to add custom validation
jQuery.validator.addMethod adds custom validation rules
addMethod:name, method, message
Simple example: adding a single verification
validate.expand.js
jQuery.validator.addMethod("isZipCode", function(value, element) {
var tel = /^[0-9]{6}$/;
return this.optional(element) || (tel.test(value));
}, "请正确填写您的邮政编码");