This is done in Javascript.
For plain Javascript, i.e. without using jQuery, you can do this:
document.getElementById("idOfElement").style.display = "none";
document.getElementById("idOfElement").style.display = "block";
Here is a link with possible values for this displayCSS element .
source
share