Can you give some sample code I could test or somethign ?? Thanks & Regards, Dhruva Sagar.
Joan Crawford<http://www.brainyquote.com/quotes/authors/j/joan_crawford.html> - "I, Joan Crawford, I believe in the dollar. Everything I earn, I spend." On Fri, Aug 28, 2009 at 4:07 PM, Xi Shen <davidshe...@googlemail.com> wrote: > > but my program want to iterator the outer array first to find out how > many arrays in the myArray variable. > > > On Fri, Aug 28, 2009 at 5:33 PM, Dhruva Sagar<dhruva.sa...@gmail.com> > wrote: > > You have initiallized myArray['somestring'] = new Array(); > > should you be doing $.each(myArray['something'], function() {...}); ? > > Thanks & Regards, > > Dhruva Sagar. > > > > > > Samuel Goldwyn - "I'm willing to admit that I may not always be right, > but > > I am never wrong." > > > > On Fri, Aug 28, 2009 at 1:19 PM, davidshe...@googlemail.com > > <davidshe...@googlemail.com> wrote: > >> > >> Hi, > >> > >> i have an array initialized like > >> var myArr = new Array(); > >> > >> later I use > >> > >> myArray['somestring'] = new Array(); > >> myArray['somestring'].push(mydata); > >> > >> to create and new array inside of it, and populate my data by pushing. > >> Then I want to use the jQuery.each(...) to iterator over it, like this > >> > >> $.each(myArray, function(){ > >> alert(this); > >> }); > >> > >> But I found the jQuery does not event enter the loop. What's wrong > >> with my array? > > > > > > > > -- > Best Regards, > David Shen > > http://twitter.com/davidshen84 >