title: Set the class attribute to Html.EditorFor in ASP.NET MVC Razor View
body: <p>As you know we can set attributes to actionLink or textBox in razor views but how can we set attributes to <code>@Html.EditorFor</code>, I know the EditorFor is a dynamic element that can be set according to model type, but all shapes of that can get the attributes. So is there any way to set attribute to <code>@Html.EditorFor</code> something like this: <code>new {@class = "myclass"}</code> ?</p>