I need some code to make it so if one option is selected on drop down A then only certain options are available on dropdown B. Likewise, if a different option on dropdown A is selected, different options are available on dropdown B etc etc.

They can either be greyed out, or not visible at all

I think i can use
<option disabled="disabled"> but i'm not sure how to implement it