var a = [ ["val1", "val2", "val3"], ["val4", "val5", "val6",
["val9", "val8", "val7"]
];
I want to serialize it so that I can set it as a value of a text box as follows:
<input id="input-id" type="text" name="serialization_stack" value=""/>
serialized_a = serialize_array(a);
$('#
input-id').val(serialized_a);
Can someone help me to define the function serialize_array()?
Thx