DEV Community

jan
jan

Posted on • Edited on

How to hide content conditionally in js?

I have two dropdowns.
First with A, B, C and second with D, E, F, G. Next only after selecting the options from first and second dropdowns I am able to select the content which is a list of checkboxes.
Now I want to hide my content until user selects the option from first and second dropdown. Till now I have made it unselectable until user selects options from both the dropdowns, but now I want to hide it. As soon as the user selects options from first and second dropdowns the content should appear.

reactjs #discuss

Top comments (0)