Fork me on GitHub

Autocomplete.js

A jQuery plugin for search hints

download

Demo

Selection

Getting started

1. Make sure jQuery is included in your page, then include autocomplete.js and autocomplete.css inside the head tag.
<link rel="stylesheet" href="css/autocomplete.css" type="text/css">
<script src="js/autocomplete.js"></script>
2. Fill hints and call the plugin on selected HTML element
var words = ['boat', 'bear', 'dog', 'drink', 'elephant', 'fruit'];

$(document).ready(function(){
	$('#yourElement').autocomplete({
		hints: words
	});
});

Options

search

Download