troubleshooting Question

Multiply and Sum Auto-numbered Fields

Avatar of gianchi66
gianchi66 asked on
JavaScript
17 Comments1 Solution392 ViewsLast Modified:
The high school I work at has a cafe which trains students on creating menus and serving food.

Lately, I was asked if staff could enter orders online for the cafe.

So I created a bunch of forms for the teacher to enter all menu info, picture, prices.

Now, I am at the order form (http://www.clemente.cps.k12.il.us/cms/cafeeight/order.php):

A "for" loop in PHP dynamically creates the number of items fields, so that the user can enter how many of each menu items they want.

How do I dynamically update the total field when the users enter a number? I created another "for" loop in javascript, but that didn't work.

Thank you in advance.
ASKER CERTIFIED SOLUTION
DonKyles

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 17 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 17 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros