Skip to main content

Forums

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
    Moderator

    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
    Moderator

    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)
  • You must be logged in to reply to this topic.
icon-link icon-logo-star icon-search icon-star