Kerilet / calculadora-bombastica

https://kerilet.github.io/calculadora-bombastica/
0 stars 0 forks source link

Bill input must have 2 decimals only #3

Closed Kerilet closed 2 years ago

Kerilet commented 2 years ago

image

Kerilet commented 2 years ago

Tried a solution I found online (to add 'step=".01" ' to the tag) but didnt work. I have no idea how to do this and would appreciate some help.

jesse1983 commented 2 years ago

https://www.w3schools.com/jsref/jsref_tofixed.asp

Kerilet commented 2 years ago

Tried to use that, but every time I typed the dot (.) to actually send an number to test, it deletes whatever is on the input tag