Auto Add Thousand Separators In Numbers - Easy Number Separator
File Size: | 2.32 KB |
---|---|
Views Total: | 24595 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
An Easy Number Separator created for formatting the number (currency) input that automatically adds thousand separators in numbers when entered in an input field.
See also:
- Easy Number and currency Formatting Library - autoNumeric
- Auto Format currency (Money) With jQuery - simple.money.format.js
- Auto Format currency In Number Input - pcsFormatNumber
- jQuery Plugin For currency Converting And Formatting - benjamin.js
- Auto Number Formatter With Pure JavaScript – Finput
- Convenient Multi-language Number Formatting Library – numbro
How to use it:
1. Download and put the JavaScript file easy-number-separator.js
after jQuery library (slim build).
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"> </script> <script src="easy-number-separator.js"></script>
2. Just add the CSS class number-separator
to the number input and the plugin will take care of the rest.
<input type="text" class="number-separator" placeholder="Enter Your Number Here...">
Changelog:
2020-04-17
- fix backspace bug
2019-09-01
- Update for appended fields
2019-08-10
- Improve Number Separator on Phone Devices
This awesome jQuery plugin is developed by amirsaa. For more Advanced Usages, please check the demo page or visit the official website.