Auto Add Thousand Separators In Numbers - Easy Number Separator

File Size: 2.32 KB
Views Total: 24115
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Auto Add Thousand Separators In Numbers - Easy Number Separator

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:

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.