brianpercival
Programmer
I have a text field with onchange function. in the function I check if it is valid if not I say field.focus.
like
var f1=theform.f1;
if (f1.value blah blah) alert
f1.focus
return
when I enter invalid data and select next field, it alerts me about the invalid data but focus goes to the "next" field. what am I doing wrong?
regards,
Brian
like
var f1=theform.f1;
if (f1.value blah blah) alert
f1.focus
return
when I enter invalid data and select next field, it alerts me about the invalid data but focus goes to the "next" field. what am I doing wrong?
regards,
Brian