469,579 Members | 1,330 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,579 developers. It's quick & easy.

Textfield with a dropdown list while writing some text

Hello

I want to make a textfield (INPUT type=text) or something that looklike
this, to drop down a list with word.

Just like:

A user writes the letter 'a' and in the dropdown list come a list of
word starting with 'a'.

The user is writing 'b' after this, the dropdown list contains all
words starting
with 'ab'.

when the user pick a word with mouse or arrow key, the word is now
standing in the text field.

I is just like as the address bar in the webbrowser.

Can someone help me to make this for my webpage?

thanks

Jul 23 '05 #1
1 2522
t.*******@software-consult.de wrote:
Hello

I want to make a textfield (INPUT type=text) or something that looklike
this, to drop down a list with word.

Just like:

A user writes the letter 'a' and in the dropdown list come a list of
word starting with 'a'.

The user is writing 'b' after this, the dropdown list contains all
words starting
with 'ab'.


There is an example here that sort of does what you are after, search
for 'auto-complete' or 'type ahead'.

<URL:http://www.mattkruse.com/javascript/autocomplete/>

I have seen examples where the select element is absolutely positioned
below the text input and appears when typing starts. It moves through
selections depending on typing, disappearing if no match if available or
when a selection is made. There are usability issues that are difficult
to overcome.

Usually it is far better if the user can actually see the option values
so they know what to type, hence the version above that allows users to
type-ahead if they want or use the select 'drop down' to select an option.

[...]

--
Rob
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by E . | last post: by
6 posts views Thread by San Smith | last post: by
1 post views Thread by Kenneth Keeley | last post: by
11 posts views Thread by eureka | last post: by
7 posts views Thread by =?Utf-8?B?Qw==?= | last post: by
2 posts views Thread by mervyntracy | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.