I have 2 Columns in a table. “Activities” and “Average % of Time”, For every activity,I want the user to input the % value in the “Average % of Time” Column, I have 7 Activity rows. All I want is the % values of all the 7 fields to add to 100% and only then submit button gets active…
Anybody know How to go about this.
Thanks in advance
Regards,
HRG
Tie a javascript onkeyup event on all the input fields.
Whenever it’s triggered, add up the values of all the fields.
If it’s 100, enable the button, else leave it disabled.
Are you using jQuery or raw Javascript?