JQuery Validation and Bootstrap 3 for same form-group
问题 I'm having a question regaring "has-error" class and the complex object. Basically for single simple type it works pretty well but for a complex object it doesnt. I have following code: My validation: public static MvcHtmlString ValidationErrorFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, string error) { if (HasError(htmlHelper, ModelMetadata.FromLambdaExpression(expression, htmlHelper.ViewData), ExpressionHelper.GetExpressionText