1
Hi, I’m having a big problem with javascript. I need an input field that is formatted as follows:
- Accept only number and points;
- Accept only one point;
- After the point only accept 8 decimal places;
the part of accepting only number and only one point I managed perfectly, but I’m breaking my head with the decimal places.
fiddle: https://jsfiddle.net/mhk8a4yo/
It works though, there is a problem in firefox browser where the Backspace key stops working, probably something related to Event.which.. but thank you!
– Thiago Gabriel
Hello, for nothing. If you used the code, please select the answer as the correct answer to your question. Thank you.
– guastallaigor