i am trying to create the facebook app. i want to use alert box. i dont know how to print the array values in alert..
"data": [
{
"name": "a",
"id": "585"
},
{
"name": "b",
"id": "6259"
},
{
"name": "c",
"id": "65209"
}
]
In this I want to print a,585..
Loading
Manj NPosted Jan 20, 2015, 9:46 PM
Jignesh TrivediPosted Sep 19, 2013, 7:03 AM
Is this solution work for you?
Manj NPosted Sep 19, 2013, 6:53 AM
Jignesh TrivediPosted Sep 19, 2013, 6:50 AM
hi,
try...
var length = data.length;
for(i=0;i alert(data[i].id);
}
hope this will help you.