Type ahead functionality for combo boxes

T

tuffs

Hi All,

I am new to this group and this is my first mail to the group.

I have a requirement wherein we need to support type ahead
functionality for combo boxes.

For e.g. Say we have 5 entries in combo box "1, 23, 14, 18, 4".
The default functionality of combobox is, whenever I press 1 from key
board, it will take me to first entry in combo box which starts with
"1". Next time when I press 1 again then it will take me to second
entry starting with 1 (i.e. 14).

My requirement is whenever user presses 1,4 one after the other it
should take me to the entry starts with 14 (and not to the entry starts
with 4).

The sample html code is

<html>
<head>
</head>
<body>
<table>
<tr align=left>
<td>
<select>
<option selected name = "1" >1</option>
<option value = "23" >23</option>
<option value = "14" >14</option>
<option value = "18" >18</option>
<option value = "4" >4</option>
</select>
</td>
</tr>
</table>
</body>
</html>
 
V

VK

tuffs said:
Hi All,

I am new to this group and this is my first mail to the group.

I have a requirement wherein we need to support type ahead
functionality for combo boxes.

For e.g. Say we have 5 entries in combo box "1, 23, 14, 18, 4".
The default functionality of combobox is, whenever I press 1 from key
board, it will take me to first entry in combo box which starts with
"1". Next time when I press 1 again then it will take me to second
entry starting with 1 (i.e. 14).

My requirement is whenever user presses 1,4 one after the other it
should take me to the entry starts with 14 (and not to the entry starts
with 4).

You may look at:
<http://www.oreillynet.com/pub/a/javascript/2003/09/03/dannygoodman.html>
 
R

RobG

tuffs said:
Hi All,

I am new to this group and this is my first mail to the group.

I have a requirement wherein we need to support type ahead
functionality for combo boxes.

For e.g. Say we have 5 entries in combo box "1, 23, 14, 18, 4".
The default functionality of combobox is, whenever I press 1 from key
board, it will take me to first entry in combo box which starts with
"1". Next time when I press 1 again then it will take me to second
entry starting with 1 (i.e. 14).

My requirement is whenever user presses 1,4 one after the other it
should take me to the entry starts with 14 (and not to the entry starts
with 4).

Start with something like this:

<URL:http://www.mattkruse.com/javascript/autocomplete/>


Follow this thread:

<URL:
http://groups.google.com/group/comp...with+IE+list+box&rnum=1&#doc_c586b9c3db9dd5cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top