Link to home
Start Free TrialLog in
Avatar of btuskey
btuskeyFlag for United States of America

asked on

PHP JQuery Running Total Problem

Hi All,

I've been helped by a few wonderful people here so far and in my ongoing efforts to learn JQuery, I'm also running up against complex requirements (at least for me).

What I'm trying to do is provide a running total of employee hours by day (column).  You will see in the example code below, I have running total by row (week by employee) and combined total (all employee hours).  However, I'm trying to figure out how to also get a running total for all employees for the day (see screenshot totals, in green, below).

I use the select name, class and later split the value element in the jquery to get the values needed.  My issue is I'm not sure how to do it by day.  I can add the calendar date to the name, class or id but since I'm creating all the dropdowns dynamically, how do I use the calendar date and then call it in the jquery function with in a way which doesn't cause an issue with the functions already created?

Any help/input, as always, is greatly appreciated!  =)

You can see my existing code here: http://jsbin.com/#/osotaFU/2/edit
User generated image
ASKER CERTIFIED SOLUTION
Avatar of quizwedge
quizwedge
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@btuskey did my solution help?