title: how to get value from a datalist and save into @Html.HiddenFor mvc
body: <p>I need get value from a datalist and save into <code>@Html.HiddenFor</code></p>
  
  <p>Below are my details:</p>
  
  <pre><code>&lt;datalist id="list"&gt;
  @foreach (var item in ViewBag.Per)
  {
      &lt;option id="@item.Value" value="@item.Text"&gt;@item.Text&lt;/option&gt;
  }
  &lt;/datalist&gt;
  @Html.HiddenFor = datalist item
  </code></pre>
  
  <p>regards</p>