Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 441 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 441 Bytes

Comma-Inputs

A simple js file that allows you to add a class to inputs to turn them in to comma separated number inputs. The examples I found couldn't handle decimals. This one does.

Usage

<html>
  <head>
    <script src="comma-number-input.min.js"></script>
  </head>
  <body>
    <input class="comma-number-field" id="id_number_field" />
  </body>
</html>

Fiddle Example

https://jsfiddle.net/mountinash/n9dyt4e8/