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