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

Home Forums JavaScript Editable Invoice, ADD "Paid" Value w/o Convertion to String

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #28915

    Someone please help this poor newbie.

    I’m trying to build off of the css-tricks Editable Invoice to make a printable invoice that can be filled out on the screen. Instead of the default "Paid" textarea being subtracted from the total, I want to make it a "Shipping (cost)" area and ADD it to the total.

    However, when I go into the example.js and change the "-" to a "+" it is (obviously) converting both values to string values and just tacking them on to each other.

    How do I have the "Paid" textarea ADDED to the order total?

    See my example I’m working on:

    Thanks for any guidance — I’m assuming this should be cake for anyone familiar with Javascript (which I am obviously not!).

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.