I have a Javascript string array with values like A12, B50, C105 etc. and I want to turn it into a pipe delimited string like this: A12|B50|C105...
How could I do th
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<script>
var employee = new Array();
employee.push("Yashwant");
employee.push("Dinesh");
employee.push("Mayur");
var employeeStr = employee.join("|");
alert('Delimited String :- ' + employeeStr);
var employeeArray = new Array();
employeeArray = employeeStr.split("|");
for(var x=0;x<employeeArray.length;x++){
alert('Employee Name:- ' + employeeArray[x]);
}
</script>
</head>
<body>
</body>
</html>