Results 1 to 2 of 2

Thread: Text box "Auto fill"

  1. #1
    Join Date
    Dec 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Text box "Auto fill"

    This question is concerning a regular HTML <input type="text"> textbox.

    Let's say I have a list of items (which would be hidden somewhere in the code):
    ABC Warehouse
    Another Store
    Best Buy
    Barney's
    Circuit City

    I want the input box to be auto-filled as the user starts typing a customer name in it. For example:

    If the user types an "a" in the field, a script would automatically fill in the box with ABC Warehouse (since it would alphabetically be the first "a" entry). But if the user then types an "n", then it would fill in "Another Store".

    This is a basic concept in a lot of programs. I'm just wondering if there is a script to do it in a web browser.

  2. #2
    Join Date
    Aug 2004
    Posts
    9,910
    Thanks
    3
    Thanked 969 Times in 957 Posts
    Blog Entries
    15

    Default

    Basically what you want is a type ahead text box sort of widget. Try doing a search on Google for it.

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
  •