Sekar Level: Sage
 Registered: 11-03-2004 Posts: 63
|
JavaScript issue, plz help
I have 100s of check boxes in my JSP page. Each checkbox has some specific value, which I tied. when I loop thro' and get those values it put comma unnecessarily like this.
654,,,,,,,,,,485,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,258,,,,,,,786,124
I want to remove commas and get the value like this, how?
654,485,258,786,124
my code syntax like this:
var myArray = new Array();
for (i=0;loop.. ){
if (document......checked) {
myArrary = checkedbox.value;
}
}
|