Originally Posted by Logic Ali
That code appears to be performing the same operation 22 times, and reveals nothing.
truly. but if you scroll waaaaaay over to the right there you'll see:
var pr_id = res.data[i];
why, when pr_id is never used inside the loop, is another mystery.
but Old Pedant nailed it - what's the point in trying to loop 22 times over a 6 item array? Chrome still errors out:
Uncaught TypeError: Cannot read property '1' of undefined
as does IE, as you say:
'data[...].1' is null or not an object
maybe if you explained what it is that you're trying to do? because using data.length instead of 22 would seem to be the logical solution...