Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery set route with parameters in url

var url = '{{ route("admin.stocks.edit", ":id") }}';
url = url.replace(':id', stock.id);
$('.stocks_list').append('<li><a href="'+url+'">' + stock.symbol + ' </a></li>');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #set #route #parameters #url
ADD COMMENT
Topic
Name
6+8 =