Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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";
  }
}
 
PREVIOUS NEXT
Tagged: #javascript #show #div
ADD COMMENT
Topic
Name
8+9 =