Possible Duplicate:
What is the difference between visibility:hidden and display:none
I am looking at examples to hide/show div
tags using JavaScript.
In some examples, they use visibility
and in some display
.
e.g.
document.getElementById("divhotel").style.visibility = "hidden";
vs
document.getElementById("divhotel").style.display = "none";
What is the difference between the two?