I have some code that looks like this that works just fine:
var info = []; for (i = 0; i < 10; i++) { info[i] = $(\'#info_\' + i).val(); }
$('[id^="info_"]').each(function(){ info.push($(this).val()); });
should do