input type="number" will cause error on numeric field with thousand separator
See original GitHub issueTHE JS
$('.fund-input').each(function (index, field) {
var dc = $(this).data('decimal');
dc = typeof dc !== 'undefined' ? dc : 5;
new Cleave(field, {
numeral: true,
numeralThousandsGroupStyle: 'thousand',
numeralDecimalScale: dc
});
);
THE HTML
<input class="form-control fund-input empty" autocomplete="off" placeholder="0.00" name="amount" type="number" value="">
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
HTML Input type number Thousand separator - Stack Overflow
Now in 2022, I used it to format thousands separator for large numbers in input text form. It is great, specially with its...
Read more >Browser support for <input type="number"> with different ...
An <input type="number"> element will open a numeric software keyboard on modern mobile operating systems. Not every user can input decimal ...
Read more ><input type="number"> - HTML: HyperText Markup Language
<input> elements of type number are used to let the user enter a number. They include built-in validation to reject non-numerical entries.
Read more >Excel: convert text to number with formula and other ways
The tutorial shows how to change text to number by using Excel's Convert to Number error checking option, formulas, mathematic operations, ...
Read more >Prevent using invalid group/decimal separator when entering ...
The suggested solution is to prevent the value from being accepted when it contains a group separator, indicating that it is not a...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
<input type="number">
simply doesn’t support input other than valid floating-point numbers.It isn’t a semantic option to use
tel
in any case other than phone numbers. The library should simply support appropriate options.