Answers for "html input text to include decimal"

16

input type that allows float number

<input type="number" step="0.01">
Posted by: Guest on June-20-2020
0

number field for float or integer form_with

f.number_field :amount, value: number_to_currency(f.object.amount.to_f, delimiter: '', unit: ''), step: :any
Posted by: Guest on February-09-2020

Browse Popular Code Answers by Language