title: Get Value From Dynamically Populated Hidden Field
body: <p>Hi I am new to MVC and I have hidden fields that are populated through jQuery on a checkbox change event.</p>
  
  <p>Is it possible to then get this value and use it in an MVC <code>@Html.ActionLink</code>?</p>
  
  <p>Sample code:</p>
  
  <pre><code>&lt;div class="col-md-3" style="text-align: center;"&gt;
      &lt;label style="text-decoration: underline;"&gt;Quote 3&lt;/label&gt;
      &lt;br /&gt;
      &lt;label id="lblQuote3"&gt;&lt;/label&gt;
      &lt;input type="hidden" id="hdfQuote3" /&gt;
  &lt;/div&gt;
  
  &lt;div class="col-md-3 compareButtonDiv" style="text-align: center;"&gt;
      @Html.ActionLinkNonEncoded("Compare Risks", "CompareRisks", "Lead", routeValues: new { bid = @Request.QueryString.Get("bid") }, htmlAttributes: new { @class = "btn btn-primary btn-md", @title = "Compare Risks" }) 
  &lt;/div&gt;
  </code></pre>
  
  <p>I am trying to get the value from the hidden field <code>lblQuote3</code> and send that value to the controller.  I think to send the value I include it in the <code>rootValues</code>.</p>