Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

[JavaScript] Need help on developing an array or function which will be able to carry over the choices you made

OpenStudy (anonymous):

I'm working on a school project which requires developing an interactive menu. I have limited knowledge on many aspects of JavaScript and html as I've been learning it for a couple of months. I am making a uniform menu which allows the user to theoretically buy uniform items (i'm not actually adding in payment options). I need help on being able to create a function or something similar which will display the choices you have made and also carry over the choices you made, which will result a confirm message. For example: http://i.imgur.com/eikiw0s.png In the above screenshot, pretend a user wanted 2 small blazers. So the user would click on small and click on enter quantity and type in 2. The user would then click on confirm order which will bring up a confirm message like 'You have chosen to confirm 2 small sized blazers for $400. Confirm?' The problem is I don't know how to create this message which varies on what size and how many items a user wants. Sample code in jsfiddle: http://jsfiddle.net/GpLvR/ Sorry if this doesn't quite make much sense. I've tried my best at explaining my problem so I might have missed out important details. So if I did, please tell.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!