title: How can i set the html id attribute in razor
body: <p>I want to configure datepicker in my MVC 5 form. I have included all the reference libraries like Jquery, datepicker etc. </p>
  
  <p>Following is the line from MVC razor view, which is created by Visual Studio in a result for MVC 5 scaffolding.</p>
  
  <pre><code>@Html.EditorFor(model =&gt; model.News_Date, new { htmlAttributes = new { @class = "form-control" }})
  </code></pre>
  
  <p>any help in this regard</p>