pull down to refresh
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
-- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number#max
Running short on time, will check when I am back :)
reply
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
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
This weekend I used ChatGPT to build an MVP of an Sats <> USD calculator on Stack Sats.
https://www.stacksats.how/convert-sats
For someone who doesn’t know any Javascript at all, ChatGPT is an insanely valuable tool.
I’m still working out some small formatting issues that ChatGPT is struggling with:
If there are any javascript experts here that can point me in the right direction on any of these, that would be huge!