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

Leave a Reply

Your email address will not be published. Required fields are marked *