title: How to add id to textbox with Html.EditorFor statement?
body: <p>I try to add id to textbox but get error. I should use <code>Html.EditorFor()</code> statement.Please advice.</p>
  
  <p>My code:</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.Historicals.HistoricalName, new { htmlAttributes = new { @class = "form-control" } }, new { id = "Historical_place_name" })
  </code></pre>