Click here to Skip to main content
14,391,319 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have this array
using javascript ,i want to iterate this array

var item={
"lstType":[{"Type":"Commerce"},{"Type":"Cart"}],

"lstName":[{"Name":"CommerceTest"},{"Name":"Mystore"}],

"lstCountry":[{"RecipientCountry":"Australia"},{"RecipientCountry":"United States"}],

"lstState":[{"RecipientState":""},{"RecipientState":"West Virginia"}]
};

after i have to get the each details from this array
How to do this
Posted

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

for (var i = 0; i < item.length;i++) {
item[i] = theCurrentItem;
}
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100