gingerj
04-04-2006, 09:19 AM
Hi I'm trying to replace commas in a string with spaces, it works for the first instance of a commas. but I dont know how to remove the rest:
var aString = "Humpty,Dumpty,sat,on,a,wall";
document.write(aString.replace(","," "));
var aString = "Humpty,Dumpty,sat,on,a,wall";
document.write(aString.replace(","," "));