i want to loop a jquery selector using .each() and assign values to a multidimensional array $record. here is what i tried and it doesnt work
JQUERY:
var $record = new Array(),
i=0,
x,y;
$("td").each(function(){
x = Math.floor((i+1)/4),
y = i%4;
$record[x][y] = true;
i++;
});
CHROME CONSOLE ERROR: Uncaught TypeError: Cannot set property '0' of undefined