Menu
I thought I understood how to split an array. But, it seems that once I split it, and I want to replace each comma with a line break, that it only works for the first comma.
[CODE]var arr_errors = new Array();
arr_errors.push(‘Test1’);
arr_errors.push(‘Test2’);
arr_errors.push(‘Test3’);
arr_errors.push(‘Test4’);
var test = arr_errors.toString().replace(‘,’, ‘n’)
alert(test);
Why is it only replacing the first comma?