Is there a way to have the field to be validated in red when the input is considered as invalid.
I don’t want to use the Html.ValidationMessageFor, because I don’t wan’t to have a message with it(it’s only for “required” fields).
Thanks you for the help
It’s already built into MVC (there are CSS classes for it).
Change the
field-validation-errorin site.css to includedisplay:none.input-validation-errorcontrols how the text boxes look like.That will only show red borders for invalid fields.