JavaScript GetElementByid Hide Element

// Toggle between hiding and displaying an element
<div id="myDIV" onclick="javascript:myFunction()">myDiv</div>
<script>
function myFunction() {
  var x = document.getElementById('myDIV');
  if (x.style.display === 'none') {
    x.style.display = 'block';
  } else {
    x.style.display = 'none';
  }
}
</script>
Trained Tuna