Html5 Placeholders with .NET MVC 3 Razor EditorFor extension?
As smnbss comments in Darin Dimitrov’s answer, Prompt exists for exactly this purpose, so there is no need to create a custom attribute. From the the documentation: Gets or sets a value that will be used to set the watermark for prompts in the UI. To use it, just decorate your view model’s property like … Read more