Check-boxes Contradicting Each Other
I'm working on a project that uses check-boxes to narrow down a selection.
Ok that out of the way here goes. Here is a link to what I've been able to come up with so far:
This is a list of Attributes(check-boxes) for specific grey boxes. e.g. check the 'Economy' check-box, only the 'Bernini' grey box is visible and any check-boxes that do not apply to the 'Bernini' grey box become grayed out and disabled. That works.
But there are some check-boxes that apply to more than 1 grey box. For instance the 'Tape-in Bottom Rail' check-box applies to both the 'Bernini' and 'Picasso' boxes, thus if that is checked, both boxes are visible. The issue I'm having is if a user checks the 'Economy' check-box, then the 'Tape-in Bottom Rail' check box, but then decided to uncheck the 'Tape-in Bottom Rail' box, check-boxes that should be disabled and grayed out are not. I think this is a matter of a double negative making a positive but don't know how to fix this. I tried using 'else if' statments instead of else if else if over and over but that didn't seem to help.
I know that I need to get the function to check what is already checked before changing the display of the check-boxes but I am unaware of how to do so.
Any help would be greatly appreciated. Thank you!