title: Use hiddenfield-value for asp-route-parameter
body: <p>Ive got a hidden field in a _PartialView with the value I want (jQuery fills it up)
  I need this same value in a (foreach) asp-route-parameter</p>
  
  <pre><code>&lt;div class="js-products-list"&gt;
   &lt;input id="cropIdForProdBaseJQ" type="hidden" value="" /&gt;
    @foreach (var product in Model.Products)
    {
      &lt;a asp-controller="XXX" asp-action="YYY" asp-route-language="@Model.CurrentLanguage" asp-route-cropId="" id="productCard"&gt;
    }
  </code></pre>
  
  <p></p>
  
  <p>So, asp-route-cropId should get the value from the hiddenfield, to pass it along as parameter</p>
  
  <p>I tried using a jQueryfunction (without any luck) like </p>
  
  <pre><code>var neededValue = the value I got from another jQfunction
  $('#productCard').attr("asp-route-cropId", neededValue);
  </code></pre>
  
  <p>Can it be done?<br>
    How would i approach this?
    Thanks!</p>