I’m trying to add a class to an input. This is not working: @Html.EditorFor(x => x.Created, new { @class = "date" }) 16 Answers 16 Tags: asp.net-mvcasp.net-mvc-3razor