code: function() {
  		if ( $(this[0]).is("form")) {
  			return this.validate().form();
  		} else {
  			var valid = true;
  			var validator = $(this[0].form).validate();
  			this.each(function() {
  				valid = valid && validator.element(this);
  			});
  			return valid;
  		}
  	}
docs: http://docs.jquery.com/Plugins/Validation/valid