What is the use of display:none CSS property?

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

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

Syntax:
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