Results 1 to 2 of 2

Thread: Setting FOCUS on a textifeld that's NOT in a form

  1. #1
    Join Date
    Jan 2009
    Posts
    82
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default Setting FOCUS on a textifeld that's NOT in a form

    I have a textfield that's not in a <form> tag that uses Ajax onkeyup.

    I would like to set the focus on the textfield when the ajax runs.

    Everything I've seen references a form.

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Code:
    <textarea id="test"...
    
    document.getElementById("test").focus();
    - Mike

Bookmarks

Posting Permissions

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