I am trying to override the default authentication css class for validators, which is the field validation class
So, if I write a Validation message for input in my form, as shown below:
@Html.ValidationMessageFor(m=>m.Name)
The MVC runtime then sets the default message range class, as shown below:
<span class="field-validation-error" data-valmsg-replace="true" data-valmsg-for="Name">
My question is how to remove the css class "error-validation-error" and replace it with another class (my version), which I will use in only certain areas of my application.
source share