jQuery.AutoComplete is a jQuery-based autocomplete plugin. With the excellent cross-browser features of jQuery, it can be compatible with various browsers such as Chrome/IE/Firefox/Opera/Safari.
Features at a glance:
- Supports the width setting of the completion list.
- Supports the maximum height setting of the completion list.
- Line limit for supported list completions.
- Supports the setting of the display position and direction of the completion list.
- Support custom matching rules.
- Supports rendering of matched text.
- Supports custom rendering styles for matching text.
- Supports styling for completion lists.
- Supports the creation of custom completion list items.
- Multiple data sources are supported.
- Both 'json' and 'xml' data formats are supported.
- Asynchronous processing is supported.
- Error debugging is supported.
-
Support jQuery1.7.1+.
Online instance
Instance Preview Autocomplete Basic Instance
Instance preview auto-completion function instance
Reference ManualjQuery.AutoComplete API Documentation
import file
- <scripttype="text/javascript"src="jquery1.8.3.min.js"></script>
- <linkrel="stylesheet"type="text/css"href="jquery.autocomplete.css">
- <scripttype="text/javascript"src="jquery.autocomplete.min.js"></script>
copy
Instructions
- <inputtype="text"id="down"value="e"></input>
copy
- $('#down').AutoComplete({
- 'data': ['One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten', 'Eleven', 'Twelve'],
- 'itemHeight': 20,
- 'width': 280
- }).AutoComplete('show');
复制