.html() and .alert() show different output
<p>I have a jquery that collects the id's of selected spans. 
when i want to display it on html it's coming out without comma, while alert() print for example <code>1,2,3</code> html() prints <code>123</code></p>

<pre><code>$("#selected_order").click(function() {
        var order = new Array();
        $(".selected").each(function(){
            order.push($(this).attr('data-id'));
        });

        $("#display_selected").html(order);
        alert(order)
});
</code></pre>
