Wednesday 1 March 2017

MVC - Add watermark effect to the TextBox



Replace
 @Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" } })
               

With

 @Html.EditorFor(model => model.LastName, new { htmlAttributes = new { @class = "form-control" , placeholder="Enter Last Name"} })
               

No comments:

Post a Comment