What is the use of display:none CSS property?

 Posted by vishalneeraj-24503 on 3/12/2014 | Category: ASP.NET Interview questions | Views: 1376 | Points: 40

display:none CSS property is used for Hiding any controls or elements from form or page.

document.getElementById('div_employee_grid').style.display = 'none';
Here is my Div control:
<div id="div_employee_grid">Hello</div>

Now div_employee_grid will be hidden from page.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response