Changing <options> within <select> on input

Discussion in 'Javascript' started by joiv, Jun 23, 2005.

  1. joiv

    joiv Guest

    I'm making a <select></select> with lots of <option></option>. It
    contains all possible options. Because of the length of the list, I
    also have an <input type="text">.

    This is what I wish to do:
    onKeyDown I want all options that don't contain (or begin with, it
    doesn't matter which one) the typed letters to be removed from the
    <select>.

    My problem is that I don't know of any code to find words and identify
    letters.
     
    joiv, Jun 23, 2005
    #1
    1. Advertisements

  2. joiv

    bmgz Guest

    bmgz, Jun 23, 2005
    #2
    1. Advertisements

  3. joiv

    RobG Guest

    Try Matt Kruze's auto-complete:

    <URL:http://www.mattkruse.com/javascript/autocomplete/>
     
    RobG, Jun 23, 2005
    #3
  4. Please don't recommend sites like that.

    The code quality typically varies from poor to worse, and their articles
    are out-dated.

    [snipped top-post]

    Stop doing that, too.

    Mike
     
    Michael Winter, Jun 24, 2005
    #4
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.