How to make element visible in JavaScript

Change the element style.visibility to visible or style.display to block.

Example:

<div id="invisibleElement" style="visibility: hidden">Invisible element</div>

<script>
  document.getElementById('invisibleElement').style.visibility = 'visible';
</script>

Output:

Invisible element

(it’s visible now)