Answers for "javascript display div"

0

javascript show div

' Toggles hide / show
function myFunction(div_id) {
  var x = document.getElementById(div_id);
  if (x.style.display === "none") {
    x.style.display = "block";
  } else {
    x.style.display = "none";
  }
}
Posted by: Guest on February-27-2021

Code answers related to "javascript display div"

Browse Popular Code Answers by Language