Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to set focus to input text field
Message
Information générale
Forum:
Java
Catégorie:
Autre
Divers
Thread ID:
00623752
Message ID:
00624060
Vues:
13
>I have a form that has a radio button. When the button is pressed (chosen by the user) I would like the focus to be moved to an Input text field. Can someone give me the java code needed to perform this action.
>
>What I have tried is this:
>
>onmousedown="Javascript:myEnableNewDodic();document.AdminForm.NewDodic.focus()"
>
>This does nto seem to work, the myEnableNewDodic function gets called and executed, but the focus does not change.
>
>Any help would be appreciated.

One SWAG, try

onmousedown="Javascript:myEnableNewDodic();document.AdminForm.NewDodic.focus();return false;"

BTW, This post should be under javascript not java.
Michael McLain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform