469,575 Members | 1,376 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

Set Focus After DropDown Select

I have a dropdown control on my web page. When the user has selected
an item on the list, I would like to set focus to one of the
textboxes. Do you know how I can do this?

Thanks for any ideas.

Cesar
Jul 20 '05 #1
1 8532
@SM
cksj a ecrit :
I have a dropdown control on my web page. When the user has selected
an item on the list, I would like to set focus to one of the
textboxes. Do you know how I can do this?


<select blabla onchange="this.form.myText.focus();">

or if you have an other function to run in this onchange ==>

<select blabla onchange="
myOtherFunction();
this.form.myText.focus();">

may be better :
<select blabla onchange="setTimeout('this.form.myText.focus()',10 );">
--
************************************************** ************
Stéphane MORIAUX : mailto:st*********************@wanadoo.fr
Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)
http://perso.wanadoo.fr/stephanePOINTmoriaux/internet/
************************************************** ************
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Christian Ista | last post: by
5 posts views Thread by Samuel Shulman | last post: by
reply views Thread by pedery | last post: by
reply views Thread by John A Grandy | last post: by
11 posts views Thread by slinky | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.