Here's what I'm ultimately trying to do. Create a gradebook for a course that has the content organized by unit (Unit 1, Unit 2, etc.).
PHP will echo out all of the data from the database that has two parts: Pts. Earned and Total Pts. The grade would be a simple calculation of Pts. Earned ÷ Total Pts. I would like two things at the end of this...
1.) I want the user to be able to check/uncheck boxes on each gradebook entry to see how their final grade would be different with/without that grade entry.
2.) I want the user to be able to see their total grade for each unit (as well as an overall grade) AND have the check/uncheck functionality for that unit that I mentioned in #1.
I'm thinking of having the clickCh function add/subtract the values of the "total_pts" input id's and then define a variable called total_pts, but I don't know how to do that since those values aren't in the input tag that's being checked.
Any ideas on this one? BTW, I'm not married to any of the above code, so feel free to hack away at it.