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: 
You can create a function like below

```
function toggle(obj){
    if(obj.style.visibility == "visible")
        obj.style.visibility = 'hidden';
    else
        obj.style.visibility = 'visible';
}

```

And then call them on the each element using `toggle(object)`;
Try this:

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

```