I have a form with input type="number" which is giving me problems in IE11: some values are accepted and some others are not, apparently randomly.
Here's the code:
<input type="number" style="text-align:right" min="1.00" placeholder="1,00" name="value-name" id="value" step="0.01" title="title" required/>
For some reason IE11 accepts 9.2, 9.4, 9.5, 9.6, 9.7, 9.9 but refuses 9.3 and 9.8. This is just an example, it's happening with all numbers and I'm not understanding the reason behind it. Moreover some numbers were accepted some minutes ago but now they aren't anymore.
In addition to this, all of the previous values should not be valid because I'm in Europe and ,
is the delimiter for the decimal part, not .
. Instead, when I use ,
, IE does not traslates it to .
and, when passed to PHP through a POST, PHP's is_numeric()
returns false!
How can I make all of this work? Thanks