02-03-2013, 06:38 PM
(This post was last modified: 02-03-2013, 06:39 PM by KevinHoughton.)
(02-03-2013, 06:23 PM)Kevin Wrote: No, the input field is set to accept decimals. Browsers that don't understand the "number" field should interpret it as a text field.
<input name="monthly" type="number" step="any" id="monthly" size="5" onkeypress="return onlyNumbers();">
When exactly is the decimal not working? When you hit the period key? When you submit the form? When you submit the form (and it appears to work) and then it ended up not saving?
I can confirm it works just fine on Chrome 26.0.1397.2 and Firefox 18.0.1. Firefox doesn't understand the number field, so it makes it a normal textbox.
In the form I can enter 1.95, when raising the number with the arrows of the number input type its being set to 196 . Also when i just fill in: 1.95 and click on edit/add(submit the form) it is also being set to 195.
I hoped this helped you a bit out.
-Kevin