Inside razor view I have textbox rendered by razor helper
@Html.EditorFor(model => model.Caption,
new { htmlAttributes = new { @class = "form-control" } })
I want to add css id class together with this form-control class so I tried
@Html.EditorFor(model => model.Caption,
new { htmlAttributes = new { @class = "form-control", @id="myId" } })
but this doesnt work.