Easy-Number-Separator
Easy Number Separator is a useful jQuery Plugin for Currency Format by Comma Separator on Input
View Demo
Features
- Separate number by comma character (
,
) when typing in input automatically and realtime. - Does not accept non-numeric characters.
- Can work on any text inputs just by add
number-separator
class. - Accept Dot character (
.
) for Decimals.
How to Use
- include jQuery in your project like this:
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
- Add Easy Number Separator plugin to your project:
<script src="js/easy-number-separator.js"></script>
- Now just add
number-separator
class to your text input for separating numbers.
Enjoy :)
tnx to amirmms