html - Need to change url and params from jquery -


html:

<a class="col-lg-12" href="{{:~url(name, type)}}" data-toggle="tooltip">  $.views.helpers({         url: function (name, type) {             return encodeuri("@url.action("index", "home", new { id = viewcontext.routedata.values["id"]})");         } 

i need refresh param id jquery. , don't want use dummy value , replace jquery. because id may couldn't replace jquery dummy value.

i tried below.

$("a").attr("href", '<%= url.action("index", "home", new { id= ' + $("a li.active").attr("data-value")}) %>'); 

but not working. how change param value dynamically jquery ?


Comments

Popular posts from this blog

javascript - Knockout pushing observable and computed data to an observable array -

Trouble making a JSON string -

sitecore - Resolve ISitecoreService using SimpleInjector -