I have 3 radio buttons - isPartOf, isNotPartOf, and delete
I do some onscreen subtotaling when the buttons are clicked.
This a list of contacts and each contact has these 3 radio buttons with a sub-total of the number of contact in the company.
When the contacts are initially displayed all are part of the group. So the default "isPartOf" is checked.
The status of each individual can then be changed.
Clicking either "isNotPartOf" or "delete" will subtract 1 from the count.
Then clicking "isPartOf" adds 1 back to the count.
Here is the problem - If the user first clicks "isNotPartOf" that decrements 1 and then clicks "delete" for the same person that decrements again.
I only want to subtract if the radio button that is being de-selected is "isPartOf"
So is it possible to know which button was de-selected when "deleted" is selected.