score:2

Accepted answer

Change

 $("#csv").append(arr.join(",")+"<br>");

TO

 $("#csv").append(arr.join(",")+"\r\n");

<br> is a html tag where as \r\n is end of line and next line characters.


Related Articles