View Single Post
Old 12-05-2012, 11:27 AM   PM User | #3
Dormilich
Senior Coder

 
Dormilich's Avatar
 
Join Date: Jan 2010
Location: Behind the Wall
Posts: 2,860
Thanks: 9
Thanked 290 Times in 286 Posts
Dormilich is on a distinguished road
since it is an array, I would advice to use a standard for() loop, not a for…in loop. anyways, there are also array methods to do the same.
PHP Code:
var = [{"name":"hpfa","addressLine1":"", ... ];
var 
names a.map(function(item) {
    return 
item.name;
}); 
__________________
please post your code wrapped in [CODE] [/CODE] tags
Dormilich is offline   Reply With Quote