Why is this code generating extra commas?
- by user816829
Iam using javascript
function chkout_pp(i) {
var myarray = new Array();
var li = 1;
myarray[0] = ""
for(j = 1; j < 13; j++)
{
if ($('#chkpp'+j).is(':checked') == true) {
myarray[li] = $('#chkpp'+j).val()+"<br>";
li++;
}
}
$("#ownerarray").val(myarray);
$("#edmt_pp").html(myarray+"");
}
this is javascript in this it is generating comma i want to remove comma from that,is their anyone can as\nswer my question