This is more of a general javascript question rather than jQuery...

To answer your question though: first, you would need to make the
string resemble an actual array structure:
var x = '[[1,2,3],[1,2],["a"],[[1],["asw"]]]';
then you could simply use eval(x).

On Mar 29, 11:31 am, Pronojit <pronojit....@gmail.com> wrote:
> Hi,
>
> Is it possible to convert a string into array Like this
> var x = '[1,2,3],[1,2],["a"],[[1],["asw"]]';
> This is equal to
> var x = [1,2,3],[1,2],["a"],[[1],["asw"]];
>
> Thanks & Regards,
> Pronojit Roy

Reply via email to