Web Analytics Made Easy -
StatCounter Drop down boxes that add - CodingForum

Announcement

Collapse
No announcement yet.

Drop down boxes that add

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Drop down boxes that add

    Hi

    I am putting a form on my site.

    I would like my drop down boxes to work like Excel. The user opens one drop down with price, then another with amount. I would them like the total to appear in another box.

    You can find my test page at www.trophies-direct.co.uk/test.htm

    You will see the grey column where I wish to the total to appear.

    I would be grateful for any assistance.

    Thank you.
    Graham

  • #2
    you need to create a javascript function... trigger it on a onChange(); event

    function AddCrap() {
    crapTotal=document.formname.selecttrophy.value+document.formname.selectNumber.value;
    document.formname.total.value=crapTotal;
    }

    Comment

    Working...
    X