Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Type-Ahead Dropdown in HTML

Posted on 2015-02-06
7
Medium Priority
?
122 Views
Last Modified: 2015-02-07
Hi Experts,

In HTML, is it possible to have drop down controls with type-ahead capabilities, like in MS Access?

For example, say I have 100 names in a <select> drop down, and when you start typing "Al" it suggests "Alex", "J" suggests "Jane", "Jo" goes to "John", etc...

However, entries not in the list should not be accepted.


Thanks.
0
Comment
Question by:APD_Toronto
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 2

Expert Comment

by:E-Risk
ID: 40594957
You can do this rather easily with a javscript. Here are a
0
 
LVL 2

Expert Comment

by:E-Risk
ID: 40594960
You can do this rather easily with a javascript / jquery. Here are a few plug-ins. http://www.sitepoint.com/10-ajaxjquery-autocomplete-tutorial-examples/
0
 

Author Comment

by:APD_Toronto
ID: 40595012
Anyone in particular you have used that offers drop down and type ahead and restrictive to only its options?
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 2

Expert Comment

by:E-Risk
ID: 40595015
Give me a few I'll get you an example I used.
0
 
LVL 2

Accepted Solution

by:
E-Risk earned 2000 total points
ID: 40595047
I composed a small customizable example for you. I have attached it to this comment.

searchable-dropdown.zip
0
 
LVL 43

Expert Comment

by:Rob
ID: 40595138
https://github.com/twitter/typeahead.js is one I've used a lot lately and it does exactly what you're after with type-ahead and limiting results in the dropdown.
0
 

Author Closing Comment

by:APD_Toronto
ID: 40595816
Thank You!!!
0

Featured Post

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
Without even knowing it, most of us are using web applications on a daily basis.  In fact, Gmail and Yahoo email, Twitter, Facebook, and eBay are used by most of us daily—and they are web applications. We generally confuse these web applications to…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question