473,378 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

textbox linked to a select field?

Hi. Thanks for reading.

I have a select box populated with about 1000 names. What I would like
to do is to have a text box available that a user can type in say "mi"
and have the select box jump down to the first entry starting with
"mi", i.e. "Michael" followed by "Mike"...

As a simple example... I was thinking something along these lines would
work, but I still consider myself new to javascript, and obviously this
is NOT working... :(

<html>
<body>

<input type="text"
onkeydown="searchOptionFinder('document.forms.form Name.userid',event);"
/>

<select name="selD" id="selD" size ="5">
<option>mathew</option>
<option>matt</option>
<option>marge</option>
<option>michael</option>
<option>mike</option>
<option>millie</option>
<option>milton</option>
<option>minnie</option>
<option>moop</option>
</select>

</body>
</html>
please let me know if you have any suggestions... Thanks!

Jul 23 '05 #1
3 1163
> I have a select box populated with about 1000 names. What I would
like
to do is to have a text box available that a user can type in say "mi"
and have the select box jump down to the first entry starting with
"mi", i.e. "Michael" followed by "Mike"...
An Auto-completing Javascript Combobox

http://www.somacon.com/aspdocs/page3003.php

Jul 23 '05 #2
The only concern is that that code requires the use of ASP, while I am
developing a servlet... I am going to try that code, but something
tells me that it won't be recognized...

Thanks for the link! I will try to modify it to work with what I have.

Jul 23 '05 #3
works perfect, thanks

Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
7
by: Joe | last post by:
I am using Access 2003 and are linking to an Oracle 9i ODBC datasource (using Oracle ODBC drivers). After linking the tables in Access, I inspect the data contained in the linked tables. For...
23
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
9
daoxx
by: daoxx | last post by:
Hi Question#1 Is it possible to show a textbox (linked to a field) when the mouse pointer goes over a checkbox, and hiding it when the pointer goes away, and at the same time allowing the user to...
7
by: robert.waters | last post by:
I have an Access database frontend linked via ODBC to a large (gigabytes) mysql database. I need to view a large amount of data in a a textbox (variable up to 300K), but I receive a 'there isnt...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.