look at this code please :
var data = {
"cell": [
"1",
"text1",
"user1",
"date1"
]};
this is an array contains just 1 element and now I need a code to set the following value into data variable:
data = {
"cell": [
"1",
"text1",
"user1",
"date1"
]
},
{
"cell": [
"2",
"text2",
"user2",
"date2"
]};
I use the following code , but it does not work.
var data = {
"cell": [
"1",
"text1",
"user1",
"date1"
]
};
data += {
"cell": [
"2",
"text2",
"user2",
"date2"
]
};
Note , I want to ADD to this array.i need a code to add another element to data variable.