87
rated 0 times
[
94]
[
7]
/ answers: 1 / hits: 24460
/ 14 Years ago, sun, july 25, 2010, 12:00:00
I have the following code
function myFunction(items) {
// this prints out 11
alert(items.length);
$(items).each(function(i, item) {
// item is undefined for some reason
}
}
It I alert the length of items, it has elements in it (11 to be exact). so how could 11 items be present, but jQuery still pass undefined?
More From » jquery