jQuery showing and hiding divs:
Display:
$("#id").show()
Hide:
$("#id").show()
JS shows and hides divs:
The visibility of the div can control the display and hiding of the div, but the page will appear blank after hiding it
style="visibility: none;"
document.getElementById("typediv1").style.visibility="hidden";//Hide
document.getElementById("typediv1").style.visibility="visible";//Display
By setting the display attribute, you can hide the div and release the occupied page space, as follows
style="display: none;"
document.getElementById("typediv1").style.display="none";//Hide
document.getElementById("typediv1").style.display="";//Display