Skip to content
Advertisement

Box appears before option is selected?

I have a drop down list that is supposed to open a new list when a certain option is selected, for whatever reason one of the hidden boxes appears when I reload the page but goes away when I select an option that isn’t connected to that box.

JavaScript
JavaScript

Am I missing something?

Advertisement

Answer

The style in the following select element is not correct:

JavaScript

It has to be as follow:

JavaScript

Also there is mistake in the following select element:

JavaScript

It has to be as follow:

JavaScript

Also you need to use closing tag for that select element </select>

Advertisement