Simulating "Auto Complete" with Javascript

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vern

    Simulating "Auto Complete" with Javascript

    Hi All,
    I'm looking for a script which monitors each keystroke in an input text
    field and compares it to the contents of an array of strings and displays
    the first matching element as the user types.

    In other words, something which works very much like the Windows
    "Autocomple te" feature.

    Has someone invented this wheel? Thanks.

    Vern


  • mscir

    #2
    Re: Simulating "Auto Complete" with Javascript

    Vern wrote:[color=blue]
    > Hi All,
    > I'm looking for a script which monitors each keystroke in an input text
    > field and compares it to the contents of an array of strings and displays
    > the first matching element as the user types.
    >
    > In other words, something which works very much like the Windows
    > "Autocomple te" feature.
    >
    > Has someone invented this wheel? Thanks.
    > Vern[/color]

    Matt Kruse has a nice example (among many others) here:



    Comment

    • Tobor8thMan

      #3
      Re: Simulating "Auto Complete" with Javascript

      Thanks, Mscir! Just what I was looking for.

      Vern

      "mscir" <mscir@access4l ess.com.net.org .uk> wrote in message
      news:10a58ios4l c1757@corp.supe rnews.com...[color=blue]
      > Vern wrote:[color=green]
      > > Hi All,
      > > I'm looking for a script which monitors each keystroke in an input text
      > > field and compares it to the contents of an array of strings and[/color][/color]
      displays[color=blue][color=green]
      > > the first matching element as the user types.
      > >
      > > In other words, something which works very much like the Windows
      > > "Autocomple te" feature.
      > >
      > > Has someone invented this wheel? Thanks.
      > > Vern[/color]
      >
      > Matt Kruse has a nice example (among many others) here:
      >
      > http://www.mattkruse.com/javascript/...ete/index.html
      >
      >[/color]


      Comment

      Working...