Hackerss.com

hackerss
hackerss

Posted on

Javascript Change display style property of a div


//select the div with id "box"
const box = document.getElementById("box");

//change the display style property of the div to "none"
box.style.display = "none";


Enter fullscreen mode Exit fullscreen mode

Top comments (0)