Sunday, November 30, 2014

How To Hide DIV using JavaScript

In order to hide Div or any other control use the following code

To Hide

document.getElementById("Div1").style.display = 'none';

To Show
  
document.getElementById("Div1").style.display = 'block';

I hope it was informative for you and I would like to Thank you for reading