document.form[0] is Null or Not an Object error when hiding a text field in ASP.Net
- by grady
Hey,
I am hiding a TextBoxin my aspx page like this:
myField.visible=false;
Now I have a DropDown as well which tries to access the TextBox on IndexChange. The problem is, it cant access the hiffen TextBox and I am getting document.form[0] is Null or Not an Object. How can I solve that? Is the some check for that in JavaScript?
Thanks :-)