My array looks like this:
["colors,cars,boks"]
What I need is this:
["colors","cars","books]
This is what i've tried:
$.makeArray(my_arr)
My array looks like this:
["colors,cars,boks"]
What I need is this:
["colors","cars","books]
This is what i've tried:
$.makeArray(my_arr)
Try:
var str = ["colors,cars,boks"];
var res = str[0].split(",");
console.log(res);