I\'m trying to add a class to an input.
This is not working:
@Html.EditorFor(x => x.Created, new { @class = \"date\" })
@Html.EditorFor(m=>m.Created ...)
does not allow any arguments to be passed in for the Text box
This is how you can apply attributes.
@Html.TextBoxFor(m=>m.Created, new { @class= "date", Name ="myName", id="myId" })