views:

47

answers:

1

when alerting a variable in javascript it shows like this.. totally 9 values(name, address, city, friend etc)

how to retrive the values

[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

+1  A: 

That looks like array of Objects, you need to loop to access each

for(var x in thatObjectArray){
     doSomethingOn(thatObjectArray[x].name);
     doSomethingOn(thatObjectArray[x].address);
     ...
}

or to test, you could do like alert(thatObjectArray[0].name)

S.Mark