gabehollombe / jquery-select-autocomplete

Turn your html select tags into input boxes with text autocomplete.

This URL has Read+Write access

Gabe Hollombe (author)
Thu Nov 05 21:12:45 -0800 2009
name age message
file LICENSE Mon Jan 26 13:40:14 -0800 2009 added license [gabehollombe]
file README.markdown Thu Nov 05 21:12:45 -0800 2009 tweaked readme [Gabe Hollombe]
file autocomplete.css Fri Jan 23 14:20:25 -0800 2009 first commit [gabehollombe]
file index.html Thu Nov 05 21:11:51 -0800 2009 elaborated on the readme a bit and show the sel... [Gabe Hollombe]
file jquery-1.3.1.min.js Fri Jan 23 14:20:25 -0800 2009 first commit [gabehollombe]
file jquery.autocomplete.js Mon Jan 26 13:23:59 -0800 2009 adding unpacked jquery autocomplete [gabehollombe]
file jquery.autocomplete.pack.js Fri Jan 23 14:20:25 -0800 2009 first commit [gabehollombe]
file jquery.select-autocomplete.js Tue Nov 03 11:06:30 -0800 2009 update to script to remove all references to th... [liferealized]
README.markdown

jQuery Select Autocomplete

jQuery Select Autocomplete lets you turn an HTML <select> tag into an auto-complete text input box and hides the select node in the DOM. When a user types in the text input box, all matching options from the select list will show up in the auto-complete list and when one option is selected, the select control's selected item is set to the item picked from the auto-complete list. This means that you don't have to change your processing code at all; just look for the select list`s value the same way you already were.

Assuming you have one or more select lists with a class of "autocomplete", just write:

$(select.autocomplete).select_autocomplete();

Example

See index.html for a working example.

License

License is MIT. See LICENSE file.

Todo

  • figure out if there's a way to automagically manage the dependency on jquery.autocomplete