Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Covert one dimensional array to coma delimited string

Status
Not open for further replies.
Joined
Jun 5, 2006
Messages
28
Location
US
Is there a quick way to convert a one dimensional array into a comma delimited string. I know i can just iterate through the array and generate the string using concatination. Is there a better or simpler way? (FYI: The elements in the array are numbers)

thanks
 
Try:
Code:
var arraystring = arrayname.join(',');

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top