Remove Commas

[Total: 0    Average: 0/5]

This script will remove commas from numbers.

Body Code:

<SCRIPT language=JavaScript> 
s= "23,60" 
document.write("started with "+s+"<BR>");
var d= "" 
len= s.length 
for(x=0;x<len;++x){ 
  if(s.charAt(x)!=","){d=d +s.charAt(x)} 
} 
document.write("ended with "+d+"<BR>");
</SCRIPT> 

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *