Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8398711
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:07:10+00:00 2026-06-09T21:07:10+00:00

In my efforts to solve a rounding problem I’ve broken the dynamic updating of

  • 0

In my efforts to solve a rounding problem I’ve broken the dynamic updating of totals that was previously working fine.

If you look at this JSFiddle:

http://jsfiddle.net/fmdataweb/73Jzc/1/

you will see as you change the select menu and add new rows and data the totals for moderate and high update dynamically. If you change a selection from high to moderate they continue to update.

I updated the script to fix a rounding issue in the totals which you can see at this JSFiddle:

http://jsfiddle.net/73Jzc/2/

All I did was change:

$('#textfield6').val(tot.moderate);
$('#textfield7').val( tot.high );

to:

$('#textfield6').val(tot.moderate.toFixed(1));
$('#textfield7').val( tot.high.toFixed(1) );

and that appears to have stopped the dynamic totals from updating and I’m not sure why.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T21:07:11+00:00Added an answer on June 9, 2026 at 9:07 pm

    define tot with default-values for high and moderate:

    var tot = {high:0,moderate:0}; 
    

    otherwise you will get an error when either high or moderate isn’t selected in any list

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my efforts to resolve Python issue 1578269 , I've been working on trying
I've exhausted all efforts at what appears to be a trivial problem, but gotten
This is similar to my previous efforts ( wordEnds and repeatEnd ): as a
Wow crazy title! But here's the problem. In efforts to dry up my school
I am trying to solve Project Euler Problem 88 , and I did it
The problem appears with the insert function that I wrote. 3 conditions must work,
I've solved my problem, but because I have tried and failed to solve it
I'm having a really tough problem and, in an effort to solve it, I
I have a very big problem solving this issue I have 2 tables first
I'm looking for a solution for this problem in C or C++. edit :

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.