I have an html page which has a list of employees. The page displays employee hours in a TEXT FIELD for each day in a week.
So the page looks like this...
Now I am trying to write a javascript that would display the sum total of everday under the TOTAL column. So in my text field if the user changes The hours on Monday from 5 to 7 the total should change at that moment to 27 without actually submitting the page.
Also if the Total becomes greater than assigned the TOTAL should appear in red.
IS this possible in javascript. I am very new to it and unsure of how this should be done? Can someone please help.
So the page looks like this...
Code:
Employee Mon Tues Wed Thur Fri Sat Sun Total Assigned
Tom 5 5 5 5 5 0 0 25 25
Now I am trying to write a javascript that would display the sum total of everday under the TOTAL column. So in my text field if the user changes The hours on Monday from 5 to 7 the total should change at that moment to 27 without actually submitting the page.
Also if the Total becomes greater than assigned the TOTAL should appear in red.
IS this possible in javascript. I am very new to it and unsure of how this should be done? Can someone please help.