title: adding parameter values inside of parenthesis while using scala.html
body: <p>i would like to add dynamic parameter values (not sure if i can call it like this)
  to the url in my scala html. </p>
  
  <p>Using javascript, I get userId first and then would like to pass it to @routes.adminController.auth(userId). </p>
  
  <p>Here is my source code, </p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function checkboxChecked() {
    var checkbox = $('td &gt; input:checked').length;
  
    if(checkbox == 1){
      var $checked = $('td &gt; input:checked');
      var userId = $checked.parent().next().text();
  
      ** I would like to add below and make it work**
     //location.href = @routes.AdmnTask.user_set(userId)
  
    } else {
      alert("Please select 1 User ID to proceed.")
    }
  
  };
  &lt;/script&gt;
  </code></pre>
  
  <p>After a few attempts, I noticed that I am not able to set some random variable and put into location.href as below.</p>
  
  <pre><code>var link = "@routes.AdmnTask.user_set(userId)"
  location.href = link
  </code></pre>
  
  <p>Could anyone give me a help with this issue please? </p>
  
  <p>Thank you in advance.</p>