Answers for "css hide div elements"

CSS
12

hide element using css

#tinynav1
{
  display:none
}
Posted by: Guest on January-13-2021
0

hide a div

const targetDiv = document.getElementById("third");
const btn = document.getElementById("toggle");
btn.onclick = function () {
  if (targetDiv.style.display !== "none") {
    targetDiv.style.display = "none";
  } else {
    targetDiv.style.display = "block";
  }
};
Posted by: Guest on December-24-2021

Browse Popular Code Answers by Language