i´m pretty new to php so im stuck with a easier calculator script…well… not easy to me but at least it doesnt sound too complicated.
firstly, i need to create a calculator that has 2 inputs… a dropdown list with cars (4 of them) that each of has a value (price per kilometer) and a textbox that user fills with a kilometer value (how many km´s he wants to drive). Then the output should be with jquery (live result). Operation is, of course, multiplying.
i would really appreciate if someone could help me out in this. im good at html and css but totally out of php.
<div class="styled-select">
<select name="dropdown">
<option value="<?=$car1;?>">Mercedes</option>
<option value="<?=$car2;?>">Scania</option>
<option value="<?=$car3;?>">Renault</option>
<option value="<?=$car4;?>">MAN</option>
</select> </div>
I think this is what you are after
HTML
jQuery:
DEMO: http://jsfiddle.net/d8ETu/