HighDots Forums  

Selection in a drop-down list

alt.html.tags alt.html.tags


Discuss Selection in a drop-down list in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Max
 
Posts: n/a

Default Selection in a drop-down list - 08-01-2003 , 05:05 AM






Hi,
is there a way in HTML or DHTML or Javascript or ActionScript to implement
this:

in a HTML page, I have a drop-down sorted list:
<SELECT NAME="Code" size="1" >
<OPTION VALUE="All">All
<OPTION VALUE="AACC" SELECTED>AACC
<OPTION VALUE="ABCDD">ABCDD
<OPTION VALUE="ABK">ABK
<OPTION VALUE="BCCC">BCCC
<OPTION VALUE="CABC">CABC
<OPTION VALUE="CBBB">CBBB
<OPTION VALUE="DACA">DACA
</SELECT>

If I press the letter A, the drop-down list points directly to the first
value in the list that
starts with an 'A' ==> AACC

If I press the letter C, the drop-down list points directly to the first
value in the list that
starts with an 'C' ==> CABC

What i want is the possibility to type a second letter:
If I press the letter A, the drop-down list points directly to the first
value in the list
of values starting with an 'A' ==> AACC and if i press 'B', this should
point to 'ABCDD',
and again if i press a third letter 'K', this should point to 'ABK'.


How do i do this ? (in HTML or DHTML or Javascript or ActionScript or even
Java/JSP/Servlet ?
thanks




Reply With Quote
  #2  
Old   
David Dorward
 
Posts: n/a

Default Re: Selection in a drop-down list - 08-01-2003 , 07:14 AM






Max wrote:

Quote:
in a HTML page, I have a drop-down sorted list:

What i want is the possibility to type a second letter:
If I press the letter A, the drop-down list points directly to the first
value in the list
of values starting with an 'A' ==> AACC and if i press 'B', this should
point to 'ABCDD',
and again if i press a third letter 'K', this should point to 'ABK'.
Mozilla does this automatically, although you have to type quickly
(otherwise it resets and thinks you are starting again).

--
David Dorward http://david.us-lot.org/
Which is stupider: Pop-up ads claiming they'll stop spam, or spam claiming
it'll stop pop-up ads? -- Dork Tower


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.