How to get value array of object using jquery

Posted by Sthepen on Stack Overflow See other posts from Stack Overflow or by Sthepen
Published on 2011-01-17T07:37:21Z Indexed on 2011/01/17 7:53 UTC
Read the original article Hit count: 178

Hi there.. i have problem to get all element in array of object using jquery...

i get this code from internet...

var id = 123;
var test = new Object();
test.Identification = id;
test.Group = "users";
test.Persons = new Array();

test.Persons.push({"FirstName":" AA ","LastName":"LA"});
test.Persons.push({"FirstName":" BB ","LastName":"LBB"});
test.Persons.push({"FirstName":" CC","LastName":"LC"});
test.Persons.push({"FirstName":" DD","LastName":"LD"});

how to get each of "FirstName" and "LastName" in Persons using JQuery??

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about arrays