Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to set focus to input text field
Message
General information
Forum:
Java
Category:
Other
Miscellaneous
Thread ID:
00623752
Message ID:
00624692
Views:
10
>>>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.
>
>Thanks for the reply, but that did not work.

Try putting the "document.AdminForm.NewDodic.focus()" command into the myEnableNewDodic() function and then return false from that function. I've never tried to set focus from the onmousedown event. You may have to use the onClick or onChange event instead.
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform