title: how to set visible property for div in javascript
body: <p>I cannot able to access control in the below way    </p>
  
  <pre><code>document.getElementById("_ctl0_ContentPlaceHolder1_divDocSearch").style.visibility = 'visible';
  </code></pre>
  
  <p>but i can able to access as</p>
  
  <pre><code>var div = document.getElementById("_ctl0_ContentPlaceHolder1_divDocSearch");
  div.style.visibility = 'visible';
  </code></pre>
  
  <p>How to access with above line, is there any toggle property available for this ?</p>