By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,636 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,636 IT Pros & Developers. It's quick & easy.

Set Focus After DropDown Select

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
@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.