Can anyone come up with a script which does the following:
The form would have 3 fields, namely Quantity, Unit Cost, and Total Cost.
Quantity and Unit Cost would both be dropdown menus, and Total Cost would be calculated based on the selections made in Quantity and Unit Cost.
In other words, I am trying to calculate:
"Quantity" * "Unit Cost" = "Total Cost"
But, there are a couple of tricks...
1. I would like Total Cost to be calculated, not by clicking a "Calculation" button, but when the user selects an option from the "Unit Cost" field.
2. The name for "Total Cost" should be a3, so:
Total Cost <input name="a3" value="...
3. Can you display Total Cost so that is also conatins $ i.e., $10.50.
Your help is much appreciated!