Web Analytics Made Easy -
StatCounter AutoFill Drop Down Boxes - CodingForum

Announcement

Collapse
No announcement yet.

AutoFill Drop Down Boxes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • AutoFill Drop Down Boxes

    Is it possible with JavaScript to have a dropdown box complete the selection as the user is typing in? I know that HTML does something similar but using just the first letter of the selection, but I'm looking to use that with part or whole words.

    Example:

    if my drop down box contains the following items:

    Black
    Blue
    Gray
    Green
    Orange
    Purple
    Red
    Yellow

    If I start typing in the drop down box "B" it will highlight "Black". If I type "Bl" I want it to be able to highlight "Black". If I type "Blu" I want it to be able to highlight "Blue".

  • #2
    Check out this link:
    http://www.codingforum.net/showthrea...759#post156759

    I believe that is what you are looking for. Good Luck.

    Comment


    • #3
      Thank you!! Works great!

      Comment

      Working...
      X