You have initiallized myArray['somestring'] = new Array();should you be
doing $.each(myArray['something'], function() {...}); ?

Thanks & Regards,
Dhruva Sagar.


Samuel Goldwyn<http://www.brainyquote.com/quotes/authors/s/samuel_goldwyn.html>
- "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?
>

Reply via email to