Add & Subtract Input Values with Javascript

Completed Posted Aug 21, 2013 Paid on delivery
Completed Paid on delivery

I have a PHP website and added a Javascript code that combines input values then adds them up providing the complete total, then subtract that total amount from a set number and outputs the balance amount.

Example:

Amount: 1000

Combine Table Amount: 750

Balance: 250

And if user changes any numbers in the fields the table amount and balance changes. The problem I'm having is that I have multiple sections, so from the example above I have 4 of them divided out with different inputs on the same page and the problem is that the 'Amount' portion only takes the amount of the first section and if the amounts are changed or different from the remaining three it only takes the value of the first amount among every other section. So I need a way to individualize each section to read from their own amounts.

And currently in values are anchored you have to click on the field for the calculation results to display. I need it able to display with have to click on field.

JavaScript jQuery / Prototype PHP

Project ID: #4848751

About the project

11 proposals Remote project Active Aug 21, 2013

Awarded to:

truongnx15fl

Hello, I think it's a very quick fix, I can help you to fix the javascript, I think the problem is with this line: var bal = $('input[class="account"]').

$30 USD in 1 day
(59 Reviews)
5.5

11 freelancers are bidding on average $101 for this job

mikesteve

Hi, Experienced developer here. Check details in PM.

$120 USD in 3 days
(123 Reviews)
7.1
bestphpjobs

I HAVE CRACKED IT AND I HAVE IT READY :) That is one is really interesting bits and willing to crack it :) Just give me a chance

$35 USD in 1 day
(221 Reviews)
6.5
shakeebgenii

Hi, I checked the attached file easy work. So lets start. Thanks

$242 USD in 3 days
(177 Reviews)
6.7
Max01

hello sir can we discuuss

$35 USD in 0 days
(214 Reviews)
6.3
jess24jess

Hello I'm ready to start

$111 USD in 3 days
(46 Reviews)
5.5
moncytvs

Hi.. I'm a javascript expert. I can do this work.

$194 USD in 3 days
(5 Reviews)
5.2
MHedayet

Let's start right now :)

$44 USD in 0 days
(55 Reviews)
5.2
amommolitor

please check your pm. Thx.

$155 USD in 1 day
(2 Reviews)
3.0
dekgymatom

I ready to start now

$66 USD in 1 day
(0 Reviews)
0.0
emma2013

I have solved your issue. How do i get awarded the project? I will tell now if you award me and you pay me if it works.

$83 USD in 3 days
(0 Reviews)
0.0