document.getElementById("remember").visibility = "hidden"; not working on a checkbox
There are two problems in your code:
- The property is called
visibility
and notvisiblity
. - It is not a property of the element itself but of its
.style
property.
It's easy to fix. Simple replace this:
document.getElementById("remember").visiblity
with this:
document.getElementById("remember").style.visibility
This is the job for style
property:
document.getElementById("remember").style.visibility = "visible";
you can use
style="display:none"
Ex:
<asp:TextBox ID="txbProv" runat="server" style="display:none"></asp:TextBox>