Toggle between hiding and showing an element with JavaScript.
Read on how to do it in this tutorial: https://www.w3schools.com/howto/howto_js_toggle_hide_show.asp
Try it yourself here: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_toggle_hide_show
Tip: For more information about Display and Visibility, read our CSS Display Tutorial.