I'm new to JavaScript and jQuery. I'm trying to parse CSV file where delimiter is not standard sign of comma (,
), but something else(;
).
I'm using the jQuery function $.csv.toArrays(csv, options, callback)
. I'm aware that delimiter is supposed to be set in options
, but I'm having hard time figuring how exactly to do this.
Thank you very much.
Try with:
var options={"separator" : ";"};
$.csv.toArrays(csv, options);