I use jQuery's $.post
to get data from php[from mysql] file data, what we get looks like that:
data = [['12-25-2012',62],['12-26-2012',60]]
when I assign this to variable it stores as string as this:
v1 = "[['12-25-2012',62],['12-26-2012',60]]"; [v1 = data]
but I require it to like this:
v2 = [['12-25-2012',62],['12-26-2012',60]];
not as a string.
To be more clarifying, you can understand by alert v1 & v2
when you alert v2
you get 12-25-2012,62,12-26-2012,60
when you alert v1
you get [['12-25-2012',62],['12-26-2012',60]]
there's difference, and I want v1
to look like v2
.