3 ms·
The (new-ish) ‘Intl.NumberFormat’ API solves this issue https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat http
by ramesh31 4y ago
The (new-ish) ‘Intl.NumberFormat’ API solves this issue
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- crooked-v 4y agoNo, it doesn't. You can't apply that to a number input.
- runarberg 4y agoIt can, you just have to mask the input somehow (which can be very involved). In particular you would use numberFormat.formatToParts() and then add the parts to as the mask element interacting differently based on the type.