var e = [ ];
$("#photo_list div").each(function(){
    e.push($(this).attr("data-id"));
});