Add & Subtract Input Values with Javascript

Fertiggestellt Veröffentlicht Aug 21, 2013 Bezahlt bei Lieferung
Fertiggestellt Bezahlt bei Lieferung

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

Projekt-ID: #4848751

Über das Projekt

11 Vorschläge Remote Projekt Aktiv Aug 21, 2013

Vergeben an:

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 Tag
(59 Bewertungen)
5.5

11 Freelancer bieten im Durchschnitt $101 für diesen Job

mikesteve

Hi, Experienced developer here. Check details in PM.

$120 USD in 3 Tagen
(123 Bewertungen)
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 Tag
(221 Bewertungen)
6.5
shakeebgenii

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

$242 USD in 3 Tagen
(177 Bewertungen)
6.7
Max01

hello sir can we discuuss

$35 USD in 0 Tagen
(214 Bewertungen)
6.3
jess24jess

Hello I'm ready to start

$111 USD in 3 Tagen
(46 Bewertungen)
5.5
moncytvs

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

$194 USD in 3 Tagen
(5 Bewertungen)
5.2
MHedayet

Let's start right now :)

$44 USD in 0 Tagen
(55 Bewertungen)
5.2
amommolitor

please check your pm. Thx.

$155 USD in 1 Tag
(2 Bewertungen)
3.0
dekgymatom

I ready to start now

$66 USD in 1 Tag
(0 Bewertungen)
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 Tagen
(0 Bewertungen)
0.0