How can I translate this ASP code to JS code
To simply explain the ASP code on the above, all it does is to take a string (ie: 1,2,3,4,5) and break it down then print it one by one in a single line such as:
1
2
3
4
5
and so on.
Thanks!
Code:
<%
arrChannels = Split(Session("cam_no"), ",")
For Each strOneWord in arrChannels
response.write strOneWord & "<BR>"
Next
%>
1
2
3
4
5
and so on.
Thanks!