[Javascript] ComboBox

Chris Tifer christ at saeweb.com
Thu Mar 20 12:36:41 CST 2003


There are no comboboxes in HTML actually unless you want to do
some fancy programming or use an Active X component of some
sort.

But on a SELECT list, if you press a key and that is the first character for
any of the OPTIONS, it will cycle through those that match.

Take the following list for example:

at
bat
cat
that



You can't press, say for instance, a "t" and have the word
"at" come up first.  "that" will be the only one it will go to.

If you want to have some textbox though and on the onKeyPress
event have it perform a search on the possible options by looping
through each OPTION in the collection for that object.

Chris Tifer
http://www.emailajoke.com



----- Original Message -----
From: "andy susanto" <andy78 at centrin.net.id>
To: <javascript at LaTech.edu>
Sent: Thursday, March 20, 2003 12:20 PM
Subject: [Javascript] ComboBox


> Hai,
>
> can i type a char into combobox and if that char on the list,  the
combobox
> can will fill it ?
>
> example:
>
> Combobox list:
> dog
> cat
>
> when i type d on combobox and combobox will select dog
>
> TIA,
>
> andy
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list