I have a text box, after user input the value, a validate function
trigered. if the value is invalid, alert display, and also set focus
back to this control.
The alert displays, but when the click the 'OK' in the alert, the set
focus to this field does not work.
see the code bellow:
if (run!="" && IsNumber(run)== false && decimalinputval id(run,2)==0 )
{
alert('wow');
//first try doen not working
(setFocus) ? document.paperc altbl.printorde r.focus() : ""
//seconde try doen not working
this.getField(" printorder").se tFocus();
//third try doen not working
document.getEle mentById("print order").focus() ;
}
Please give some advise. Thanks in advance.
trigered. if the value is invalid, alert display, and also set focus
back to this control.
The alert displays, but when the click the 'OK' in the alert, the set
focus to this field does not work.
see the code bellow:
if (run!="" && IsNumber(run)== false && decimalinputval id(run,2)==0 )
{
alert('wow');
//first try doen not working
(setFocus) ? document.paperc altbl.printorde r.focus() : ""
//seconde try doen not working
this.getField(" printorder").se tFocus();
//third try doen not working
document.getEle mentById("print order").focus() ;
}
Please give some advise. Thanks in advance.
Comment