Is there a way to have a data annotation for what should be in placeholder
attr on a textbox in an MVC view?
Example:
In my ViewModel.cs, something like:
[Placeholder="First name"]
public string FirstName { get; set; }
In my view:
@this.Html.TextBoxFor(m => m.FirstName)
If that could render this:
<input type="text" placeholder="First name" ... />
Is this possible? Thanks!
ActionFilterAttribute
– Rheumatism