title: How I can hide div without using runat server from c# code
body: <p>I have two conditions, I want to hide and show a <code>div</code> with javascript or with c# code. Using <code>runat="server"</code>, I am able to hide the div with C#. Is it possible to hide the <code>div</code> with javascript? I tried the following:</p>
  
  <pre><code>&lt;div id="divpassword" runat="server" style="display: none;" &gt;
  ----
  ----
  &lt;/div&gt;
  
  document.getElementById('&lt;%= divpassword.ClientID %&gt;').style.display = 'block';
  </code></pre>