K
kpg
Hi all,
This should be simple...
I have a TextBox1 and a customvalidation control linked to it.
I use a client side script to validate the textbox.
If the data is not valid I want to return focus to the textbox.
I tried document.GetElementByID("TextBox1").focus(); and
doucment.Form1.TextBox1.focus(); to no avail.
How can I return focus to the TextBox1 after the uses hits
<TAB> to move and the client side script detects an error?
Thanks.
kpg
This should be simple...
I have a TextBox1 and a customvalidation control linked to it.
I use a client side script to validate the textbox.
If the data is not valid I want to return focus to the textbox.
I tried document.GetElementByID("TextBox1").focus(); and
doucment.Form1.TextBox1.focus(); to no avail.
How can I return focus to the TextBox1 after the uses hits
<TAB> to move and the client side script detects an error?
Thanks.
kpg