Treehouse: Grow your CSS skills. Land your dream job.

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

  • # May 4, 2010 at 12:18 am

    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)

You must be logged in to reply to this topic.