Hello there,
I have a slight problem with creating dynamic quotes. Basically I have two select boxes and need to calculate a total in real-time using javascript and insert into input
First it needs to explode out the machine price and term years from the values and then calculate.
Here an example:
A machine costs £4000 and a term of 2 years(60 months). The calculation would be (4000/60)*3 = £200
Please Help,
Thanks,
Ryan
I have a slight problem with creating dynamic quotes. Basically I have two select boxes and need to calculate a total in real-time using javascript and insert into input
First it needs to explode out the machine price and term years from the values and then calculate.
Here an example:
A machine costs £4000 and a term of 2 years(60 months). The calculation would be (4000/60)*3 = £200
Please Help,
Thanks,
Ryan
Code:
<select name="machine"> <option value="2005 - Almida XAS47 (660 Hours) £4000">2005 - Almida XAS47 (660 Hours) £4000</option> </select> <select name="term"> <option value="2 years (£46.85)">2 years (£46.85)</option> </select> <input id="deposit" name="deposit"/>
Comment