Tuesday, February 18, 2014

Make a number type input field accommodate decimals.

<input type="number" name="whatever" step="0.01" />

...is a "paraphrased" example given here which shows off the step parameter which is the key to the trick.

No comments:

Post a Comment