Skip to content
Advertisement

Tag: number-formatting

toLocaleString() doesn’t work in Safari browser

I used toLocaleString() method to input money comma in `javascript. But the problem is, IE and chrome browser result correctly except Safari browser. I delete cache several times but still doesn’t work. Answer The issue here is that number.toLocaleString is implemented differently on different browsers. On Safari, it chooses not to display with the person-friendly formatting we’re used to. It

Advertisement