title: How to pass Model field value into a javascript variable?
body: <p><code>&lt;%: Html.HiddenFor(model => model.Name) %></code></p>
  
  <pre>
  <code>
  &lt;script&gt; 
  var name = &lt;%: Model.Name %&gt; 
  alert(name);
  &lt;/script&gt; 
  </code>
  </pre>