Help with some homework

Joined: 12/19/2008

Ok guys. I need some help with my homework.

We are covering javascript in my web languages class and I'm stuck on a problem that I need a second set of eyes.

Scenario:

I have an order form with three drop down boxes with 4 products. The user needs to be able to select the items they want to purchase and then calculate the totals dynamically. I've been using the "onselect" option. I'm missing something somewhere and I've messed with it long enough. Could you guys give me a hand?

Here is the link.

http://test.flfchurch.com/unit_6/ordercalc.html

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
onchange

I'm more of a fan of the onchange event for something like this. When the value of a field changes do an update.

See http://www.w3schools.com/jsref/jsref_onchange.asp.

Does this help? Are you looking for something else?

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 12/19/2008
I thought about using the onchange event.

My real problem is populating the new field. But I got a hold of my instructor and we worked it out.