Set Focus After DropDown Select

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • cksj

    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
  • @SM

    #2
    Re: Set Focus After DropDown Select

    cksj a ecrit :
    [color=blue]
    > 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?[/color]

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

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

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

    may be better :
    <select blabla onchange="setTi meout('this.for m.myText.focus( )',10);">


    --
    *************** *************** *************** *************** **
    Stéphane MORIAUX : mailto:stephane OTER-MOImoriaux@wana doo.fr
    Aide aux Pages Perso (images & couleurs, formulaire, CHP, JS)

    *************** *************** *************** *************** **


    Comment

    Working...