Are you already using type="number" with your <input>? Maybe step can help here, however, haven't tested it yet.
max and min should definitely fix this:
Trying to figure out how to limit the number of digits entered to prevent overflow
Running short on time, will check when I am back :)
this worked great, just set the maximum character length to 10. thanks!
reply
What about the decimals points? You got it working?
reply
yup, working correctly now 👌🏻
reply
234 sats \ 1 reply \ @ek 29 Dec 2022
Awesome, let us know if there is anything else we can help you with.
I like helping people since questions like this motivate me to challenge and consolidate my existing knowledge
Or even learn something new myself
reply
appreciate it, will do!
reply