Get total cost from dynamic fields (jQuery/JavaScript)
$10-30 AUD
Completed
Posted about 7 years ago
$10-30 AUD
Paid on delivery
I've already set up a system which I am happy with that allows adding additional rows each which contains 4 fields, but for this project we are only concerned with three fields: QTY, Rate and Amount.
See the file attached.
The problem you need to solve:
You'll notice the RATE field is 100 (but the user can change this). When you enter a value into the QTY field, it should automatically update the AMOUNT field using the simple formula QTY x RATE. So for example, if the QTY is 3 and the RATE is 100, then the AMOUNT needs to show 300.
Using the ADD ROW link at the top, you can add more rows, and of course enter in more values. Adding more rows and entering more values needs to keep automatically updating the AMOUNT field.
While all this is happening, the 'total' field should be automatically updating the total of the amounts, even as you add or delete rows.
And finally, if you delete a row (click the red x) then the total should also update automatically.
The screenshot (also attached) shows an example of how it would look with some sample values. I think you get the idea.
Hello, there.
Greetings From EiliaSolutions.
I have studies your project Description.
we are working on web development for over 9 years.
Please Start the conversation so I can finish it on time.
Thank you.
best Regards.
Sib, EiliaSolutions.