HighDots Forums  

Selection in a drop-down list

alt.html.dhtml alt.html.dhtml


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



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

Default Selection in a drop-down list - 08-01-2003 , 04: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
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 - 2008, Jelsoft Enterprises Ltd.