Numbertor
by Qodio
Numbertor is a jQuery-based addon for input boxes, giving them a number sanitizer.
Example 1:
Example 2:
{ decimals: 2 }
Example 3:
{ decimals: 2, decimalSeperator: '.', thousandSeperator: ',' }
(english standard)
Notice that the input must adhere to the standard as well
Example 4:
{ allowEmpty: false }
Example 5:
{ allowEmpty: true }
Example 6: Inline markup initialized
<input class="numbertor" id="inputNumbertor6" value="1234,567" data-numbertor-allow-empty="true">
Fork me on GitHub