Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    An adding function

    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

    Code:
    <tr>
          <td><div align="center">
            <input name="Ageratum" type="checkbox" id="Ageratum" value="checkbox">
          </div></td>
          <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>
          <td>&nbsp;</td>
        </tr>
    Bit of a begginner at javascript, so any help would be great thanks.

    Cathal.
    Last edited by CPower; 04-12-2005 at 06:12 PM.

  • #2
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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??

    Thanks,
    Cathal.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •