[jQuery] $.each cannot iterator my array
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?