The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › Decimal Incriments: Dyanmic Order Form
Hi there,
I’m using https://css-tricks.com/examples/DynamicOrderForm/ to create a form and wondering how you would use decimal increments instead of a whole value?
Many thanks in advance!
I’m assuming you are referring to the Quantity
<input id="number" type="number" step="0.1">
https://codepen.io/Paulie-D/pen/NVXEPb?&editable=true
No sorry Paulie I meant the order total. At the moment it’s rounding up to the nearest whole. i.e. 9.95 is 10.
Ah…sorry
That’s aJS/JQ thing and that’s not my forte.
I’d suggest you look into the order.js file.
There seem to be a lot of parseInt statetments which might be the issue.
parseInt
Thanks for your help Paulie. Appreciate it. Managed to sort it.