var id = new Array(); var $x = $(".some"); for (i=0; x<$x.length; i++;) id.push($x.getId());
var id = new Array(); var $x = $(".some"); for (i=0; x<$x.length; i++;) { id.push($x.attr('id')); }