A
amy
I have a text box, once the user input the value in, I do a validate
to the input, if it's invalid, then do a alert and set focus to this
control.
The alert displays, but the set focus doesn't work.Here is the client
side javascript code,
if (run!="" && IsNumber(run)==false && decimalinputvalid(run,2)==0 )
{
alert('This field only allows the entry of a maximum of 2 decimal
places. Please re-enter a correct value.');
//set focus
document.papercaltbl.printorder.focus();
}
Please give some advise. Thanks in advance.
to the input, if it's invalid, then do a alert and set focus to this
control.
The alert displays, but the set focus doesn't work.Here is the client
side javascript code,
if (run!="" && IsNumber(run)==false && decimalinputvalid(run,2)==0 )
{
alert('This field only allows the entry of a maximum of 2 decimal
places. Please re-enter a correct value.');
//set focus
document.papercaltbl.printorder.focus();
}
Please give some advise. Thanks in advance.