A CSS and Javascript AutoComplete
A Javascript library which provides an auto-complete dropdown which you can attach to one or more form inputs (typically text inputs). It functions the same as the Internet Explorer auto-complete, and works in Internet Explorer and Firefox (tested on Internet Explorer, Firefox, Chrome, Safari and Opera).
You can download the code here.
Features
- Works on MSIE, Firefox, Chrome, Safari & Opera
- Easy setup.
- Multiple dropdowns per page.
- Provide your own data to populate the auto-complete (naturally).
- Can set the maximum number of items shown at once, with scrolling support.
Demo
You can either press a key whilst focused on the input box, or you can double click the input box. Just like Internet Explorers built in auto-complete.
The example illustrates how the auto-complete appears above dropdowns (combo boxes) - not usually the case for layers in Internet Explorer. Also, the second text box is readonly. This is totally optional and you can achieve it by setting the READONLY attribute on your form field.
Requirements
The AutoComplete widget works with all the major browsers:
- Internet Explorer 5 or higher
- Firefox 1.5 or higher
- Safari 2.0 or higher
- Opera 8.0 or higher