Add & Subtract Input Values with Javascript

Completado Publicado Aug 21, 2013 Pagado a la entrega
Completado Pagado a la entrega

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

Nº del proyecto: #4848751

Sobre el proyecto

11 propuestas Proyecto remoto Activo Aug 21, 2013

Adjudicado a:

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 en 1 día
(59 comentarios)
5.5

11 freelancers están ofertando un promedio de $101 por este trabajo

mikesteve

Hi, Experienced developer here. Check details in PM.

$120 USD en 3 días
(123 comentarios)
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 en 1 día
(221 comentarios)
6.5
shakeebgenii

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

$242 USD en 3 días
(177 comentarios)
6.7
Max01

hello sir can we discuuss

$35 USD en 0 días
(214 comentarios)
6.3
jess24jess

Hello I'm ready to start

$111 USD en 3 días
(46 comentarios)
5.5
moncytvs

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

$194 USD en 3 días
(5 comentarios)
5.2
MHedayet

Let's start right now :)

$44 USD en 0 días
(55 comentarios)
5.2
amommolitor

please check your pm. Thx.

$155 USD en 1 día
(2 comentarios)
3.0
dekgymatom

I ready to start now

$66 USD en 1 día
(0 comentarios)
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 en 3 días
(0 comentarios)
0.0