var choices = [[]];
var i = 0;
$('.type_multiple-choices').each(function () {
$('input[name^=choice]').each(function () {
choices[i].push($(this).val());
});
i++;
});
I want to create multidimensional array and push input datas into it.
But when i try like this, error occures:
Cannot read property 'push' of undefined