@Html.EditorFor(model => model.ToEmail, new { htmlAttributes = new { @class = "form-control", @placeholder = "Enter Your EmailID...!!!" } })
EditorFor
What's New in ASP.NET MVC 5.1 | Microsoft Docs[^]: We now allow passing in HTML attributes in EditorFor as an anonymous object.
@Html.EditorFor(model => model, new { htmlAttributes = new { @class = "form-control" }, })
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)