js style display block none code example
Example 1: display none js
document.getElementById("myDIV").style.display = "none";
Example 2: style display block js
document.getElementById("myDIV").style.display = "block";
document.getElementById("myDIV").style.display = "none";
document.getElementById("myDIV").style.display = "block";