function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mohan sharmaMohan sharma 

How to apply repeat in javascript in salesforce visualforce page.

Best Answer chosen by Mohan sharma
Deepak Kumar ShyoranDeepak Kumar Shyoran
You can use a apex:repeat in javascript in same way as used in VF page.

See below code :

<script>
<apex:repeat value="{!listOfRecords}" var="item" >
alert('{!item}') ;
</apex:repeat>
</script>