[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.6

Dynamically add values of combo boxes using javascript

Asked by pborregg in JavaScript

Tags: javascript

Hello friends,

Here's what I have:  a series of 15 combo boxes that have only on choice per...

1 - 5 are the values.

The employee rates his/her abilities by choosing 1 (being unsatisfactory) to 5 (being exemplory)

The numbers in the middle don't really matter except for that they are there... so 1, 2, 3, 4, and 5 are the choices.

At the bottom of the screen (ASP CLASSIC PAGE), again, this is irrelovant, I have a <span id='ttlEmpRatings'>0</span>.

As an employee chooses a rating scale value, I want to dynamically add/subtract from the choices and show the total at the bottom.  So if through the 15 drop down boxes the employee believes s/he racks up 100 points then I want it to show <span id='ttlEmpRatings'>100</span>.

Now if they believe they made an error and want to change one of the values in the drop down box and the total is now 99 then I want that to reflect in the <SPAN> tag. Get me? And so on if they "INCREASE" their values...

I know that innerHTML will be used here and the parseInt(10,0) will be used as well, what I'm stuck on is how to dynamically caclulate this on-the-fly...

Thanks

Peter
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Here's the combo box code... simply repeat it 15 times in an HTML page:
 
        <select name="selectBox1" class="style9" id="selectBox1" onchange="ttlEmp(this.value)">
          <option value="0" selected="selected">SELECT</option>
          <option value="1">Unsat</option>
          <option value="2">Marginal</option>
          <option value="3">Competent</option>
          <option value="4">Commendable</option>
          <option value="5">Outstanding</option>
        </select>
[+][-]08/17/09 07:51 PM, ID: 25119852Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: JavaScript
Tags: javascript
Sign Up Now!
Solution Provided By: pborregg
Participating Experts: 0
Solution Grade: A
 
[+][-]08/17/09 07:54 PM, ID: 25119861Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625