Setting focus to a control

Results 1 to 2 of 2

Thread: Setting focus to a control

  1. #1
    Tim Westmoreland Guest

    Default Setting focus to a control

    What is the best way to set the focus to the next control in the tab order when a user presses enter?<BR><BR>I want the cursor to automatically go to the next text box when the user presses enter. All that happens not is a beep.

  2. #2
    manpreet Guest

    Default RE: Setting focus to a control

    javascript to the rescue!!<BR><BR>&#060;assuming that ur form has a name "form1"<BR>use this code to setfocus>> "onSubmit="" where "xyz" is the name of the text box.<BR>u can even have the existing text selected by this,<BR>;<BR>;<BR><BR>enjoy!<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts