Hello!
Faced such a problem: in the firewall, <input type="number"/>
does not want to work with floating-point numbers, but in Google Chrome everything is fine. Can I somehow solve this problem?
does not want to work with floating-point...">
Hello!
Faced such a problem: in the firewall, <input type="number"/>
does not want to work with floating-point numbers, but in Google Chrome everything is fine. Can I somehow solve this problem?
Everything works. Try experimenting with the delimiter (full stop or comma) - it probably depends on the regional settings.
document.querySelector('input').addEventListener('input', function () { document.querySelector('output').textContent = this.value })
<input type=number step=0.01 min=0 max=1> <output></output>
Source: https://ru.stackoverflow.com/questions/554635/
All Articles