Ok, I've attached a screenshot which shows two dropdowns, one for category and the other for subcategory (still building site so not pretty yet).
If I switch off a category in the left dropdown the corresponding subcategory still shows in the right dropdown.
I would like the subcategory to disappear automatically when a category is switched off.
Hope this is clear.