I am trying to setup my model so I can use the
@Html.EditorFor(e => e.publicationTitle)
and have it show a Watermark with a hint.
Currently I am do
The placeholder attribute is not supported in earlier versions of IE, so for the Display[(Promt="...")]
to work fine I recommend to use (along with the String template as Samack described) any jQuery watermark plugin (I used the google one) then add this to the Document.Ready function:
$(document).ready(function(){
$(':text').watermark({ textAttr: 'placeholder' });
})