Creating an invoice with automatic cells
Can somebody tell me how I can make a webpage that show a pull-down menu of all the products I have and when you choose a product next to it the price show up automatically?
It should really not be that tough but I have not been able to find how to do it.
If possible the lower cell should calculate the toal so the customer can have the total invoice emailed to them.
Thank you!
Futzel
Re: Creating an invoice with automatic cells
Quote:
Originally posted by Futzelman
Can somebody tell me how I can make a webpage that show a pull-down menu of all the products I have and when you choose a product next to it the price show up automatically?
It should really not be that tough but I have not been able to find how to do it.
If possible the lower cell should calculate the toal so the customer can have the total invoice emailed to them.
Thank you!
Futzel
I am not entirely sure what you want to do, but it should not be hard to do using DHTML and JavaScript.
You should have a DIV or TD where you want to display the price. Once something is selected, just put a price in that DIV or TD using the innerText object.
<DIV id="myprice"></DIV>
In javascript function called when you click or select something have a line like this.
myprice.innerText = '$24.95';
Of course you would want to pass a variable of the price and not have it hardcoded like I showed above.