Results 1 to 5 of 5

Thread: Auto-Suggest Text in Forms

  1. #1
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Auto-Suggest Text in Forms

    There are "many" examples of auto-suggest / auto-complete scripts out there .....

    i.e. User types "Jo"
    & the drop down box suggests:

    Joanne
    Jon
    Jones
    , etc., etc.,

    These are all based on recognising the first characters in the string.
    What I'm looking for is to be able to achieve the same if the user were to type "on", for example, to result in:

    Jon
    Jones
    , etc.

    Is this feasible in JS alone, without the use of a database?

    Thanks in advance,

    N.

  2. #2
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    Yes it can be done either via a database or via JS/AJAX.

    YUI AutoComplete Control

    You can find the demo pages that performs the auto completion in various different modes.

  3. #3
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Talking

    Thanks for your reply. It looks like this provides an option to achieve this.

    Appreciate your help!

  4. #4
    Join Date
    Dec 2007
    Location
    Ankara, Turkey
    Posts
    160
    Thanks
    2
    Thanked 2 Times in 2 Posts

    Default

    It can also be made by regular expressions of Javascript I think.

  5. #5
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Are you able to provide any examples or point to a link at all please?

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
  •