Skip to content
Advertisement

Change display Visibility and Boolean Value onclick in JavaScript

I am trying to change the style display visibility and boolean value(which is a global variable) onclick. Nothing changes with the code I have Written Am I missing anything?

JavaScript

CSS

JavaScript

Advertisement

Answer

You should call changeView in the button event listener:

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