Providing a List to the $.each() Function
<cfscript> WriteOutput('<h3>LIST</h3><ul>'); $.each( Collection: 'Orange,Apple,Banana,Strawberry' , Action: myAction1 ); WriteOutput('</ul>'); public any function myAction1(item, $) { WriteOutput( '<li>' & arguments.$.event('each:index') & ': ' & arguments.item & '</li>' ); } </cfscript>