I am working on a MVC 4 project which requires to generate a specific markup when there is any error raise by the model validation.
suppose :
<div><i class="fa fa-info"></i><span>Error Message</span><div>
I have tried jquery to update the markup required on the event but that makes the code complex as too many client side events need attach on the DOM elements.
Thanks
Edit : Razor view engine generate a specific markup for
@Html.ValidationMessageFor(model => model.ModelProperty)
I want to customize the markup generated by the Razor View Engine for the above helper method without affecting the validation functionality.