更新时间:1970-01-01 07:57:00
在服务器上(C#):errorDiv.Style [ visibility] = ;
在Javascript:var errorDiv = document .getElementById( errorDiv跨度>);
errorDiv.style.visibility = ;
Hello
I have the folowing tag.I want to convert visibility Style from hidden to visible.
I''m using C#.
can you help me?
<div id="errorDiv" class="errorDiv" runat="server" style="visibility: hidden;">
<asp:Label ID="errorLbl" CssClass="errorLbl" runat="server"></asp:Label>
</div>
On the server (C#):errorDiv.Style["visibility"] = "";
In Javascript:var errorDiv = document.getElementById("errorDiv"); errorDiv.style.visibility= "";