Drop down list and calculations
I have a question I haven't seen before. I have created a form that uses a drop down list to populate a price field. This field is then multiplied by my quantity field to get a result. Like this:
User selects A the price becomes $1.00. It is multiplied by quantity and gives the correct result.
User selects B the price becomes $2.00. It is multiplied by quantity and gives the correct result.
User selects C the price becomes $3.00. It is multiplied by quantity and gives the correct result.
This is basically hard coded in my mind. Now I need to get away from that by making price fields such as Price 1, Price 2, Price 3 and so on for when pricing changes.
When I select A the price that is multiplied by quantity is Price 1.
When I select B the price that is multiplied by quantity is Price 2.
When I select A the price that is multiplied by quantity is Price 3. and so on.
I'm completely new to this and java script so any help is appreciated. Be gentle, I'm old!
Thanks,
Chant

