Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Decimal Incriments: Dyanmic Order Form

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #288231
    LaLiLuLeLoMkII
    Participant

    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!

    #288235
    Paulie_D
    Member

    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

    #288236
    LaLiLuLeLoMkII
    Participant

    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.

    #288266
    Paulie_D
    Member

    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.

    #288458
    LaLiLuLeLoMkII
    Participant

    Thanks for your help Paulie. Appreciate it. Managed to sort it.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.