Solved

Adding up all fields of a Form

Posted on 1997-08-16
6
173 Views
Last Modified: 2012-08-14
I'm trying to add up the values of each item in my form.  the problem is that I can't add in the value of a pulldown menu.  I have to have it added to the final sum.  Can anyone help me?
0
Comment
Question by:benread
  • 3
  • 2
6 Comments
 
LVL 10

Expert Comment

by:kollegov
ID: 1268989
Some code or page URL would be usefull :) to understand
what really you want to do

0
 
LVL 1

Accepted Solution

by:
barakp earned 100 total points
ID: 1268990
Use and if sentence for that pulldown menu.

If (pulldown=something)
  {
  sum=sum+1;
  }
else if (pulldown=something else)
      {
       sum=sum+2;
       }
0
 

Author Comment

by:benread
ID: 1268991
ok, here's the problem... I have nine selections, with values from 1 to 9 we'll say, and I need to put all of this in a single variable.  I'm sorry for not saying that earlier.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Author Comment

by:benread
ID: 1268992
OK, I guess the real question is, "How do I get the value of a pulldown menu option?"
0
 
LVL 1

Expert Comment

by:barakp
ID: 1268993
do you mean how to get a value from a form field???
0
 

Author Comment

by:benread
ID: 1268994
I don't need an answer anymore, but thanks for trying.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now