Skip to content
Advertisement

Show hidden drop down based on selected option in another drop down with jQuery

I’m trying to figure out how to show hidden div but I’m a little rusty on jQuery.

So when a user selects “Yes” from Menu1 dropdown, I want the Menu2 dropdown to show up. l’m using style="visibility: hidden; to hide Menu2.

enter image description here enter image description here

JavaScript

Advertisement

Answer

You can use this siple javascript code for that. No need to go for jQuery here. just give a id to hidden div so we can access it.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement