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
Post a Comment