View Full Version : An adding function

04-11-2005, 05:10 PM
Hey Guys,

I have designed a website as a project. Its quite simple but I want to insert a function on it that will let the user of the site enter a quantity into a listbox then have it multiply by the price of the product the appear in the total column. Here is how i have the table looking:

Check Box | Name | Price per plant/tray | Quantity | Total
___________Ageratum______ 2.50 euro

<td><div align="center">
<input name="Ageratum" type="checkbox" id="Ageratum" value="checkbox">
<td height="26"><div align="left"><span class="style18">Ageratum</span></div></td>
<td><span class="style18">2.50 euro</span></td>
<td><input size=7 name="Quantity" value=""></td>

Bit of a begginner at javascript, so any help would be great thanks.


04-12-2005, 07:36 PM
I was looking at the thread "Calculating Multiple Totals (via a function) ". this is similar to what i want to do but one of the listboxs would have a set figure, could someone let me know how i could work this into my code??