How to add HTML input for money?

Spread the love

Sometimes, we want to add HTML input for money.

In this article, we’ll look at how to add HTML input for money.

How to add HTML input for money?

To add HTML input for money, we use the step attribute.

For instance, we write

<input type="number" min="0.00" max="10000.00" step="0.01" />

to add a number input with the step attribute set to 0.01 to let us type in 2 decimal places.

Conclusion

To add HTML input for money, we use the step attribute.

Leave a Reply

Your email address will not be published. Required fields are marked *