Why is this code generating extra commas?
<p>I am using javascript  </p>

<pre><code>function chkout_pp(i) {
    var myarray = new Array();
    var li = 1;
    myarray[0] = ""
    for(j = 1; j &lt; 13; j++)
    {
        if ($('#chkpp'+j).is(':checked') == true) {  
            myarray[li] = $('#chkpp'+j).val()+"&lt;br&gt;";
            li++;
        }
    } 
    $("#ownerarray").val(myarray);
    $("#edmt_pp").html(myarray+"");
}
</code></pre>

<p>This code is generating commas. I want to remove the commas. Is there anyone that can answer my question?</p>
