title: How to set value in .net tag helper attribute using javascript?
body: <p>I am trying to set parameter value read from a textbox on the page to this link:</p>
  
  <pre><code>&lt;a asp-action="RetrieveEmailRecipients" asp-route-clientnumber="getClientNumber()"&gt;Retrieve Email Recipients&lt;/a&gt;
  </code></pre>
  
  <p>And I have Javascript down somewhere else at the bottom of the page. But appreatly this is not the right way to pass value to MVC action method's parameter. </p>
  
  <p>What parameter ClientNumber read in action is whatever the string/value in asp-route-clientnumber, in this case the value is getClientNumber(). </p>
  
  <p>What is the correct way to set value in the attribute using javascript/jquery?</p>