I have a problem to get the whole element in an array of an object using jquery ...
I get this code from the 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 ??
source
share