Show/hide ‘div’ using JavaScript

How to show or hide an element: In order to show or hide an element, manipulate the element’s style property. In most cases, you probably just want to change the element’s display property: Alternatively, if you would still like the element to occupy space (like if you were to hide a table cell), you could change the element’s visibility property instead: … Read more