SyntaxFix
Write A Post
Hire A Developer
Questions
Per the docs, replace returns the new string - it does not modify the string you pass it.
replace
var tt="88,9827"; tt = tt.replace(/,/g, '.'); ^^^^ alert(tt);