• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Advanced selection in a drop-down list

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes it can be done.
Look at this disscussion on another forum
http://www.codingforums.com/showthread.php?s=d6696056278878a45e22cff902335637&threadid=9865
The discussion is long (4+ pages of threads so look through it to find the best script)
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic