Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Help Write Javascript Calculation

$
0
0

Ok here is the trouble I am having. I want to write a javascript calculation to sum the total of text fields when a certain choice is selected in a dropdown field.

 

The text fields I want to sum are called : Amount 1, Amount 2...all the way to Amount 14

The Dropdown is called: Payment 1, Payment 2... all the way to Payment 14

 

So, I want to write the calculation tha sums the amount fields that correspond with the same number dropdown when the drop down choice selected is "Reimbursement"

 

So if amount 1 is $50, and payment 1 is reimbursement it adds to the total, but if something else is selected instead it just adds $0.

 

Please help!


Viewing all articles
Browse latest Browse all 12130

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>