jquery - json returning list<customers> -


i'm returning list<customer> json result in controller. in client script can see customers fine being returned.

can somehow use forin loop? because when try says var undefined.

for (var in customers) { alert(i.customername); } 

try:

for (var in customers) {     alert(customers[i].customername); } 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -