Can't Focus a Select Control??

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,077
Messages
2,570,567
Members
47,203
Latest member
EmmaSwank1

Latest Threads

Top