B
Brad Melendy
Hello,
I'm trying to validate the contents of a form, and while processing
Select controls to ensure that someone makes a proper selection, I'd
like to set focus back to the control. I do this with text boxes all
over the place, but I can't seem to focus a select control. The way
I'm doing it is if I'm currently evaluating a select control that is
form element number 10 as I'm looping through, my command would look
like this:
document.forms[0].elements.focus(); //where i = 10
What happens is that the next text box on the form is always set focus
to, rather than the select control.
Does anyone know what I'm doing wrong? I don't get any errors and it
behaves the same in both IE and NS. Thanks in advance for any
suggestions!
.....Brad
I'm trying to validate the contents of a form, and while processing
Select controls to ensure that someone makes a proper selection, I'd
like to set focus back to the control. I do this with text boxes all
over the place, but I can't seem to focus a select control. The way
I'm doing it is if I'm currently evaluating a select control that is
form element number 10 as I'm looping through, my command would look
like this:
document.forms[0].elements.focus(); //where i = 10
What happens is that the next text box on the form is always set focus
to, rather than the select control.
Does anyone know what I'm doing wrong? I don't get any errors and it
behaves the same in both IE and NS. Thanks in advance for any
suggestions!
.....Brad