So as the title says, I'm trying to set an array from a string variable.
/*** THIS DOES NOT WORK ***/
var Multi = [];
var test = "[0,1],[1,5],[2,3],[3,10]";
Multi.push(test);
/*** THIS WORKS ***/
var Multi = [];
Multi.push([0,1],[1,5],[2,3],[3,10]);
Why is it that when I save it as a string it doesn't work? I need for it to work in a string as I'm pulling these values from another PHP file via AJAX.
Thanks.