MVC.net 2 - change the HTML outputed by ValidationMessageFor - can this be down via templates?
- by Nathan Kelly
MVC.net 2 by default outputs validation messages like this:
<span id="UserName_validationMessage" class="field-validation-valid">A Validation message</span>
I would like it to do it like this:
<label id="UserName_validationMessage" class="field-validation-valid">A Validation message</label>
Is there a way to do it like the display and editor templates? Or is there another way to do it globally?