Html.ValidationFor automatically applies input-validation-error css class to the target textbox. However the css is not mine to edit and I'm not allowed to change it (i.e. rename the sitebuild's error class to input-validation-error). Can I change the helper applies to the textbox somehow?
Add a comment
|
2 Answers
Those constants are hardcoded in the HtmlHelper class. You will have to write custom html helpers if you want to use different names. Probably would be a lot of work, much more than simply using those names in your CSS file.
1 Comment
TDaver
I've already sent the email to the buyer asking to change the css. Hoping for some non-hard-headedness. I won't delete this answer in case anyone in the future wonders the same...