I've faced the problem with nvelocity #foreach statement. I'd like to save the collection item properties to the js variable. So I thought that construction like this would cover the issue.
jQuery('#resendButton').bind('click',
function (e) { var failedItems = [#foreach($item in $FailedOrders) $item.SpecificId#between , #end ... });
But it failed. I'm not even able to debug it. What's the best way to implement such a piece of logic on vm?
Thanks in advance