Question: I cannot able to access control in the below way 

```
document.getElementById("_ctl0_ContentPlaceHolder1_divDocSearch").style.visibility = 'visible';

```

but i can able to access as

```
var div = document.getElementById("_ctl0_ContentPlaceHolder1_divDocSearch");
div.style.visibility = 'visible';

```

How to access with above line, is there any toggle property available for this ?

Answer: 
Try

`div.style = 'display:none';`

to hide the div. and thus

`div.style = 'display:inline';` // or block, or whatever you need.

to display the div.

EDIT:

Just foudn this: <http://www.w3schools.com/css/css_display_visibility.asp>

so it looks like you can do

`div.visibility = 'hidden';`
Try this:

```
document.getElementById("<%= divDocSearch.ClientID %>").style.display = 'none';

```