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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -