code: function( name, method, message ) {
  		$.validator.methods[name] = method;
  		$.validator.messages[name] = message !== undefined ? message : $.validator.messages[name];
  		if ( method.length < 3 ) {
  			$.validator.addClassRules(name, $.validator.normalizeRule(name));
  		}
  	}
docs: http://jqueryvalidation.org/jQuery.validator.addMethod/