Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Select & Option tags

Status
Not open for further replies.

fortage

MIS
Jun 15, 2000
329
US
Is there a way to create a list that will take you to the exact item if you type the first few characters? I have a list of a few thousand names and just going to the first instance of a letter isn't enough
I.E. If I type "jame" to go directly to "james".

adam
bob
jacob
jake
jamas
james
jamis
jamos
 
Not without JavaScript. Search the JavaScript forum (forum216). After you've read some previous threads on this topic, post any remaining questions you have.

Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
O Time, Strength, Cash, and Patience! [infinity]
 
Not quite what you want but just keep hitting j.

Code:
<html><select>
<option value=adam>adam</option>
<option value=bob>bob</option>
<option value=jacob>jacob</option>
<option value=jake>jake</option>
<option value=jamas>jamas</option>
<option value=james>james</option>
</select></html>

Clive
 
You can use jemminger's smart select script, it's pretty good:


-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top