I get this error when trying to make a textbox visible, can you help?
Microsoft JScript runtime error: Unable to get value of the property 'style': object is null or undefined.
on either of the bolded lines below.
Control:
<asp:TextBoxID="txtFromDate"text="From:"style="visibility:hidden"runat="server"></asp:TextBox>
<script type="text/javascript">
function CheckFreq()
{
var MyFreq = document.getElementById("<%=cmbFreq.ClientID%>").value;
var tb=document.getElementById("txtFromDate");
if (MyFreq == "R")
{// tb.style.display="block"; tb.style.visibilty="visibile"; }
else
tb.style.display="none";
}</script>