title: How to add id to @Html.DisplayFor
body: <p>I'm trying to add id to</p>
  
  <pre><code>@Html.DisplayFor(model =&gt; model.ScreenWidth, new { @id = "width"})
  </code></pre>
  
  <p>and then use</p>
  
  <pre><code>document.getElementById("width").innerHTML = w;
  </code></pre>
  
  <p>Why is it not working?</p>