title: Need to change url and params from jquery
body: <p>HTML: </p>
  
  <pre><code>&lt;a class="col-lg-12" href="{{:~url(name, type)}}" data-toggle="tooltip"&gt;
  
  $.views.helpers({
          url: function (name, type) {
              return encodeURI("@Url.Action("index", "home", new { id = ViewContext.RouteData.Values["id"]})");
          }
  </code></pre>
  
  <p>I need to refresh this param id from jquery. And I don't want to use any dummy value and replace it from jquery. Because id may be anything so I couldn't replace with jquery from dummy value.</p>
  
  <p>I tried like below.</p>
  
  <pre><code>$("a").attr("href", '&lt;%= Url.Action("index", "home", new { id= ' + $("a li.active").attr("data-value")}) %&gt;');
  </code></pre>
  
  <p>But this is not working.  How to change this param value dynamically from jquery ?</p>