Author: AppDevForMe | Posted on: 7/10/2009 1:37:17 PM | Views : 271

I am using Java script to get the focus when a cursor is placed in a text box. When focus is set in the textbox, with Java Script, I set the text of a label control to empty or a space. But I am getting a null exception at line 4 (And or 6) in my Java Script. Can someone help me figure out why? This only happens if I use it for an asp.net multi line textbox?
Webpage Error
Do you want to debug this webpage?
this webpage contains errors that might prevent it from displaying or working
correctly. If you are not testing this webpage, click NO.
Line: 4: Object required (Error: 'null' is null or not an object)
 
Points to this line 4, I tried adding line 6 and removing line 4, but I get the same error.
1  <script type="text/javascript">
2     function clearNewInfoLabel() {
3       var lbl = document.getElementById('ctl00_Con ...

Go to the complete details ...