0
Q:

javascript display block

document.getElementById("myDIV").style.display = "none";
11
document.getElementById("someElementId").style.display = "block";
17

 function myFunction() {
  var x = document.getElementById('myDIV');
  if (x.style.display === 'none') {

      x.style.display = 'block';
  } else {
    x.style.display = 'none';

    }
} 
2

New to Communities?

Join the community